[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Below I show commands to control program flow, like, conditions, loops, define script arguments and so on. Other commands can be found in chapters Ядро MathGL and Обработка данных. Note, that some of program flow commands (like define, ask, call, for, func) should be placed alone in the string.
Changes the current directory to path.
Sets N-th script argument to answer which give the user on the question. Usually this show dialog with question where user can enter some text as answer. Here N is digit (0...9) or alpha (a...z).
Sets N-th script argument to smth. Note, that smth is used as is (with ‘'’ symbols if present). Here N is digit (0...9) or alpha (a...z).
Create scalar variable name
which have the numeric value of smth
. Later you can use this variable as usual number. Here N is digit (0...9) or alpha (a...z).
Sets N-th script argument to character with value evaluated from smth. Here N is digit (0...9) or alpha (a...z).
Sets N-th script argument to number with value evaluated from smth. Here N is digit (0...9) or alpha (a...z).
Sets N-th script argument to palette character at position evaluated from smth. Here N is digit (0...9) or alpha (a...z).
Executes function fname (or script if function is not found). Optional arguments will be passed to functions. See also func.
Define the function fname and number of required arguments. The arguments will be placed in script parameters $1, $2, ... $9. Note, you should stop script execution before function definition(s) by command stop. See also return.
Return from the function. See also func.
Starts block which will be executed if dat satisfy to cond.
val
Starts block which will be executed if val
is nonzero.
Starts block which will be executed if previous if
or elseif
is false and dat satisfy to cond.
val
Starts block which will be executed if previous if
or elseif
is false and val
is nonzero.
Starts block which will be executed if previous if
or elseif
is false.
Finishes if/elseif/else
block.
v1 v2 [dv=1]
Starts cycle with $N-th argument changing from v1 to v2 with the step dv. Here N is digit (0...9) or alpha (a...z).
Starts cycle with $N-th argument changing for dat values. Here N is digit (0...9) or alpha (a...z).
Finishes for
cycle.
val
The code between once on
and once off
will be executed only once. Useful for large data manipulation in programs like UDAV.
Terminate execution.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by Autobuild on September 28, 2013 using texi2html 1.82.