![]() |
| ||||||||||||||||||
![]() |
| ||||||||||||||||||
|
An example for conditional execution
has been given above, the syntax is the same as in Python, 'elif' is used instead of
'else if'. Note that you cannot continue on the same line after 'if', 'elif' or
'else', you always have to start a new (indented) line. a = 2 if a==1 Print 'A equals 1!' elif a==2 Print 'A equals 2!' else Print 'A equals neither 1 nor 2!' A equals 2!
| ||||||||||||||||||