• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

If,Else, Elseif,

Joined
Jun 14, 2013
Messages
158
Reaction score
14
If you have any problem with understanding if,else,elseif, you should try to work on scratch, it's really simpe, drag and drop the codes
Link: scratch.mit.edu
 
if you use proper tabbing in your code you can visualize in a way like that website does
you can easily read bodies of blocks and know what bodies belong to what blocks
such as this
Code:
local var = 4

if (var == 3) then
    -- start body
    print('var is equal to 3')
    -- end body
elseif (var == 4) then
    -- start body
    print('var is equal to 4')
    -- end body
else
    -- start body
    print('var is not equal to 3 or 4)
    -- end body
end
i'm not saying this website is bad though ;)
 
Last edited:
Back
Top