Macro Scheduler 15

Complex Expressions

Syntax

 

In Macro Scheduler all complex functions should be contained within curly braces ("{" and "}").  Variables should be enclosed within % symbols and literal strings should be enclosed within double quotes (").  Parameters are separated by commas (,).

 

Complex expressions are supported in Macro Scheduler's IF statements and LET statement, and since version 9.0 can now also be included within all other commands and function calls in the place of regular variables.

 

Type

 

When using complex expressions to assign the value of a variable (e.g. using the Let statement) the variable type will be stored internally and used later in comparisons within complex expressions.

 

Disabling

 

Complex expressions can be disabled at any point by setting the DISABLE_COMPLEX_EXPRESSIONS variable to 1.  Switch back on by resetting to 0.

 

Operators

 

 Arithmetic Operators

 Logical Operators

 String Operators        

 Relational Operators

 

Functions

 

 Arithmetic Functions

 String Functions

 Conditional Expressions

 

Examples

 

 Complex Expression Examples