Syntax


Constants


Field identifiers

Names of fields are attributes of a ServerInfo record. These include 'type', 'location_info', and 'iid', even though these are explicitly stored instead of just other attributes.

Some pseudo-fields are also available - they are all prefaced with an underscore:


Variables

Variables are various miscellaneous data items that are part of the environment. The syntax for referring to a variable is a '$' sign followed by the variable name. The following variables are available:


Functions

Functions perform transformations on data and return a result. There are two possible syntaxes for a function call:
	funcname(field, other-arguments)
	field.funcname(other-arguments...)
Internally, 'field.funcname(other-arguments...)' is translated to be exactly the same as 'funcname(field, other-arguments)', so 'priority.max()' is exactly the same as 'max(priority)'. Function names are case insensitive. The following functions are available:


Operators

Table 1. Binary relational operators.

OperatorSignification
==equal
!=not equal
<less than
>greater than
<=less than or equal
>=greater than or equal

Table 2. Binary boolean operators.

OperatorSignification
&& or ANDand
|| or ORor
^^ or XORexclusive or

Table 3. Unary boolean operators.

OperatorSignification
~ or NOTnot

Table 4. Binary arithmetic operators.

OperatorSignification
/divided by
+plus
-minus
*times

Table 5. Unary arithmetic operators.

OperatorSignification
-negate