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:
Example:
- if (x[4]= 0) then metamorph = CSGobject;
-
- else if (x[4] = 1) then metamorph = blobbyobject;
- endif;
endif;
Iterative statement
The iterative statement allows to define repeating loops. Its general form is:
'while' '(' <boolean expression> ')' 'loop' <statements> 'endloop' ';'
Example:
i=1;
- while (i<10) loop
- xt[i] = x[1] - x0[i];
i = i+1;
endloop;