Script Statements
This statement does not mean anything for the system. This is only comments for the operator. It can also be used to temporarily remove other statement to avoid some action.
Example:
For all local variables, it should be declared before it can be used in the subroutine. All local variables are used in local script only.
Example:
This statement executes its expressions unconditionally. The expressions are separated with ";".
Example:
The complete syntax is IF expression THEN action expression; action expression; ELSE IF expression THEN action expression; action expression; ELSE action expression; action expression;
If the IF expression is true (non-zero), the system executes the expressions after THEN and then skip the rest of the IF-THEN-ELSE statement.
If the IF expression is false (zero), the system skips the THEN statement and look for a ELSE or ELSE IF statement (if any). If next statement is ELSE IF, the system treats it as an IF statement (beginning of a IF-THEN-ELSE). If next statement is ELSE, the system executes the expressions.