An operator sequence contains zero or more operators, followed by the semicolon (';') symbol.
An empty operator performs no action:
A null operator consists of the keyword null. It performs no action:
An assignment operator consists of a data container reference (a variable, an array element, or a dictionary element), the assignment operation, and an expression. The expression and the data container reference are computed (in an unspecified order), and the expression value is used to modify the data container. The = operation assigns the expression value to the data container.
Other assignment operations consist of a binary operation symbol and the = symbol. They apply the corresponding binary operation to the current data container value and the expression value, and store the result in the data container.
If a data container reference is an array element, that element must exist or it must be the first non-existent array element, i.e. if an array has 3 elements, you can assign values to elements number 0,1,2, and 3. In the last case, a new element is added to the array.
If a data container reference is a dictionary element, assigning a null-value effectively removes the element from the dictionary.
If MyProc procedure has 2 parameters, the following operator is a correct procedure call:
For procedure with one or more parameters, a call operator can be specified as a method:
The MyProc call (see above) can be specified as a method:
A stop operator terminates the Task execution. It consists of the stop keyword:
A return operator finishes function or procedure execution. A return operator within a function consists of the return keyword and an expression. This expression is computed and its value becomes the value of the function call.
A return operator within a procedure consists of the return keyword.
A conditional operator consists of the if keyword followed by an expression (if-expression), the end keyword, an operator sequence (if-sequence), and the end keyword optionally followed by the if keyword. The if-expression is computed, and if its value is not a null-value, the if-sequence is executed, and the conditional operation execution ends.
The following example increases the myCount variable value by 2 if its value is less than 10:
if myCount < 10 then myCount = myCount + 2; end if;
A conditional operator can optionally contain one or more elif-portions after the if-sequence. Each elif-portion consists of the elif keyword, an expression (elif-expression), the then keyword, and an operator sequence (elif-sequence). If the if-expression value is a null-value, the first elif-expression is computed, and if its value is not a null-value, its elif-sequ