Variables can be defined in the source code but there are also predefined system variables that can be used (see chapter “List of All System Parameters”).

Note: The current values of variables can be shown in the source code editor by clicking the “Toggle Code Mining” button.

Basic Concepts

- Variables marked with var will be valid only locally (scope is the session and/or the function).
- Other variables are always available globally (no scoping rules).
- Variables will be defined implicitly by assigning values.
- The type of the variable will be determined by the assigned value.
- Available types:
- Boolean
- String (surrounded by double quotation marks)
- Date (datenow is available as system variable)
- Time (timenow is available as system variable)
- Integer

- Variable replacement in strings (also location strings) can be done with {~~}.

Example |

myvar = "myadditionaltext" def someFunction() { |

Logical Operators

You can use the following logical operators and save the result into a variable.

Integer and Date/Time

- Equal: ==
- Not equal: !=
- Bigger than: >
- Bigger than or equal: >=
- Smaller than: <
- Smaller than or equal: <=

Boolean

- And: &&
- Or: ||
- Not: !

String

- Like: like

Arithmetic Operators

You can use the following arithmetic operators and save the result into a variable.

Integer and Date/Time

- Addition: + (adds days to a date value or seconds to a time value)
- Subtraction: - (subtracts days from a date value or seconds from a time value)

Integer

- Multiplication: *
- Division: /
- Modulo: %
- Exponentiation: ^

String

- Concatenation: +