Crea sito

3.2.5 if



Description:


You can use the if statement to conditionally execute part of your program, based on the truth value of a given expression.
If the boolean expression evaluates to true, then then-statement is executed and else-statement is not.
If test evaluates to false, then else-statement is executed and then-statement is not.
The else clause is optional.
You can't nest more than MAX_NESTED_IF (see Configurations).

Declaration:


then statement
endif

then statement
else
else statement
endif


Examples: