There are four types of the statements each ending with ';':
Its general form is:
<localVarName> '=' <functional expression> ';'
Here <localVarName> is a name of any local variable (including name of array's element) or a name of a coordinate variable. Examples:
Assignment statement for an array.
This statement allows to assign values to all elements of array. Its general form is:
<ElemArrayName> '=' '[' <constant>, ..., <constant> ']' ';'
Example:
pz = [100., -20, 2, 0., 0., -3, 0., 0., 1E-10];
Conditional statement
It is a traditional 'if-then-else' statement having two forms:
'if' <boolean expression> 'then' <statements> 'endif' ';'
'if' <boolean expression> 'then' <statements> 'else' <statements> 'endif' ';'
Iterative statement
The iterative statement allows to define repeating loops. Its general form is:
'while' '(' <boolean expression> ')' 'loop' <statements> 'endloop' ';'