User`s manual
12. Appendix B – Hydra scripting language definition v1.0
Barco – iStudio – R5976569 – user's manual – revision 09 – March-2007
____________________________________________________________________________________
12-4
12.2 Definition of script syntax
Commenting lines in your script can be done with a semicolon ; . For instance:
; Put the name of module in variable this
module this
Labels can be defined with a : followed by the name of the label, e.g. :label. Each label can be used only once
(unique position in script).
Variables do not have to be declared. All variables are stored as strings but you can use the content of a variable
for arithmetic operations or as a boolean. Do not use more variables than necessary (performance). Variable
names can contain letters, digits and the underscore: e.g. counter_1.
String constants have to be defined this way: ”constant”, e.g. ”hydra”.
Number constants consist of an optional minus sign and digits. Only integer constants are supported (with a 32
bit range). Booleans are also defined as number constants: zero means false and not zero means true.
Instructions/commands have the following structure :
command [subcommand] par1 par2 ... parN
The first parameter is usually the result variable if a result is returned.
The well-known if / then / else, case / switch, for, while or repeat constructs are not avail-
able. All these constructs can be however replaced by the usage of labels and conditional jumps/gotos. Pro-
cedures and functions are also not available in the traditional way. Arrays are not available, but there are lists
instead.