LUA control flow basic grammar

print ( 'I started to learn to control the flow')

if else statements
A = to true;
IF A the then
Print ( 'I was really')
ELSEIF the then A == 2
Print ( 'I 2')
the else
Print ( 'I'm a fake')
End

And the statement
A. 1 =
B 2 =
IF A == == 2. 1 B and the then
Print ( '= A. 1, 2 and = B')
End

Or statement
A. 1 =
B. 3 =
IF A == B == 2. 1 or the then
Print ( '. 1 = A, 2 = or B')
End

Published 49 original articles · won praise 3 · Views 5617

Guess you like

Origin blog.csdn.net/nb_zsy/article/details/104252888