Expressions consist of value references and operators. Value references are variable names or literals. Basic SQL operators are used. Two special operators are supported - at sign (@) and pound sign (#). A set of functions are available.
The precedence of operators is:
The special operators (@, #) are used with arrays and are described under var Command.
The SQL-style operators between, like and in are described under between, like, in.
Jive functions are:
| Name | Type | Description |
|---|---|---|
| cr | string | control character - new line |
| true | bool | boolean true |
| false | bool | boolean false |
| calender | date | calender date at startup |
| clock | time | clock time at startup |
| now | timestamp | timestamp at startup |
The error value is set following a SQL, input or env command. It indicates if an error has occurred in processing the command. error is true following an input or env command if a type other than string was defined and there was a conversion failure, otherwise it is false. error is true following a SQL command if the SQL command caused an ODBC error, otherwise it is false.
empty is set following a SQL command. It indicates that the SQL command processed no rows. Some ODBC drivers cannot detect empty conditions on update, delete and/or insert. In this case, empty is null.
error and empty are available for a query (select) following the {end} terminating the select.
rows is a special variable like the preset's above, but its value changes after each SQL command. After update, delete and/or insert, it will contain the row count if available, otherwise it will contain -1.