scripting:syntax
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| scripting:syntax [2012/03/23 02:42] – created mit | scripting:syntax [2025/05/28 16:34] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| * Each line of script needs to be put on a new line | * Each line of script needs to be put on a new line | ||
| * All script code is case-insensitive. (e.g. the variable ' | * All script code is case-insensitive. (e.g. the variable ' | ||
| + | * All variables are preceeded with $ | ||
| ===== Conditional Statements ===== | ===== Conditional Statements ===== | ||
| Line 24: | Line 24: | ||
| </ | </ | ||
| - | + | Supported conditions inside an '' | |
| + | * '' | ||
| + | * ''<'' | ||
| + | * ''>'' | ||
| + | * '' | ||
| + | * ''< | ||
| + | * ''> | ||
| - | TBD | + | ===== Comments ===== |
| - | + | Code comments are simple C-stylee, e.g | |
| + | < | ||
| + | // Check the item number | ||
| + | if ( $itemNum = 112 ) | ||
| + | { | ||
| + | // *say Nothing (this line is commented out) | ||
| + | } | ||
| + | </ | ||
| - | Comments | + | ===== Maths operators ===== |
| - | + | Basic maths operators are supported in simple form. Compound operations are not yet supported so each line needs to be kept basic, e.g. : | |
| - | TBD | + | < |
| - | + | $var = $var + 1 | |
| - | + | $newvar = $var * 100 | |
| + | </ | ||
| - | + | Currently only the 4 basic operators ( ' | |
| - | |||
scripting/syntax.1332470549.txt.gz · Last modified: (external edit)
