| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
10.23 Program flow (MGL)
These commands control program flow, like, conditions, cycles, define script arguments and so on.
- MGL command: define $N smth
Sets N-th script argument to smth. Note, that smth is used as is (with ‘'’ symbols if present).
- MGL command: elseif dat 'cond'
Starts block which will be executed if previous
iforelseifis false and dat satisfy to cond.
- MGL command: elseif
val Starts block which will be executed if previous
iforelseifis false andvalis nonzero.
- MGL command: for $N
v1 v2 [dv=1] Starts cycle with N-th argument changing from v1 to v2 with the step dv.
- MGL command: once
val The code between once on and once off will be executed only once. Useful for large data manipulation in programs like UDAV.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
