Difference between revisions of "Category:Commands"
m
Corrected scriptname link.
imported>Gblues (Added basic syntax of a script; moved comparison and logical operators into if topic) |
imported>Gblues m (Corrected scriptname link.) |
||
Line 8: | Line 8: | ||
</pre> | </pre> | ||
The [[ScriptName]] command is fairly self-explanatory: it sets the name of the script. It is required, and the name must be unique. | The [[scriptname|ScriptName]] command is fairly self-explanatory: it sets the name of the script. It is required, and the name must be unique. | ||
The [[begin]] directive defines the action that triggers the script. If the conditions of the [[begin]] statement are met, all commands between [[begin]] and [[end]] are executed. Every [[begin]] statement must have a corresponding [[end]] statement! | The [[begin]] directive defines the action that triggers the script. If the conditions of the [[begin]] statement are met, all commands between [[begin]] and [[end]] are executed. Every [[begin]] statement must have a corresponding [[end]] statement! |