找回密码
 注册
搜索
楼主: tzwhen@tj

请教个elseif的问题

[复制链接]
门派:明教
发表于 2019-5-20 08:10:50 来自手机 | 显示全部楼层
别人问的是elseif a==Kalyan
门派:明教
发表于 2019-5-20 08:12:49 来自手机 | 显示全部楼层
别人问的是elseif a==kaoya then xxxx和else if a==kaoya then xxxx的区别......
门派:大轮寺
发表于 2019-7-19 02:08:09 | 显示全部楼层
tzwhen@tj 发表于 2019-5-18 19:37
看的我是云里雾里啊

就是elseif相当于else后面进更一个if,但是可以剩下匹配的end
if x then
   a
        else
            y
                   if
                          z
                   end
end

==============
if x then
   a
        else
            y
                   elseif
                          z
                   --end  这个不需要了
end

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|书剑永恒MUD ( 闽ICP备14012032号|闽公网安备 35050202000162号 )

GMT+8, 2025-6-8 07:05 , Processed in 0.025747 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表