This documentation uses syntax (or “railroad”) diagrams to show the structure of the commands. They provide a graphical way of showing mandatory and optional parameters, or parts of, a command.
UnSelect
command.Command names are shown in the syntax diagrams inside single quotes. These quotes are not used when writing the script. A valid script line with the UnSelect command is simply:
UnSelect
Commands may have mandatory or optional parameters, identified by the branching of the paths.
For example, the OnError
command must have either Terminate
or Continue
as its first parameter and may have AlertUser
or nothing as its second parameter.
Syntax diagrams may be nested, i.e. a single entry in one diagram may have its own separate syntax diagram. Nesting helps remove clutter from diagrams and allows the reuse of common features.
In the syntax diagrams in this document, text within quotes, e.g. 'OnError'
is the literal text expected in a script.
If the node of a syntax diagram does not contain quotes then it means that the value represents a nested state.
The diagram below shows that a string parameter may be either a constant string value (one wrapped with quotes) or may be the value of a bookmark attribute.
Literal strings are text that you wish to pass straight through to a command, i.e. the text is not interpreted in any way.
Strings may either be literal (fully defined in the script) or may come from values stored in bookmark attributes. Both are treated the same way, except that bookmark attributes are not enclosed in quotes.
Strings are enclosed in double quotes (“).
To use the double quote within a string use it twice (“”).
Strings (including bookmark data) are automatically concatenated. E.g. "A" "B"
is output as "AB"
.
Examples:
Basic:
"Hello World"
is output as Hello World
Concatenation:
"String1" ":" "String2"
is output as String1:String2
Integration with bookmark attributes
If the bmUsername
attribute is JackJones then
"Username is " bmUsername
becomes Username is JackJones