Documentation
This section contains the intrinsic functions that are used for selecting a value from a group of values.
The .if() function outputs the second or the third parameter,
depending on the value of the first parameter.
| Type name | Result for an expression of this type in this parameter |
|---|---|
.nul
| The result is the value of the third parameter |
.inf
| The result is the value of the second parameter |
string
| If the string is not the empty string then the result is the value of the second parameter, otherwise it is the value of the third parameter |
boolean
| If the value of the boolean is .true then the result is the value of the second parameter, otherwise it is the value of the third parameter |
integer
| If the value of the integer is non-zero then the result is the value of the second parameter, otherwise it is the value of the third parameter |
number
| If the value of the number is non-zero then the result is the value of the second parameter, otherwise it is the value of the third parameter |
| Type name | Result for an expression of this type in this parameter |
|---|---|
.nul
| The result may be .nul |
.inf
| The result may be .inf |
string
| The result may be this value |
boolean
| The result may be this value |
integer
| The result may be this value |
number
| The result may be this value |
Returns the minimum of any number of parameters. Values are considered to be in the following order, with the greatest first. Within any item below values are compared in the normal way.
.infnumbers greater than or equal to 1
.truestrings that are not empty
blobs that are not empty
numbers greater than 0 and less than 1
the empty blob
the empty string
.falsezero
negative numbers
.nul
Returns the maximum of any number of parameters. Values are considered to be in the following order, with the greatest first. Within any item below values are compared in the normal way.
.infnumbers greater than or equal to 1
.truestrings that are not empty
blobs that are not empty
numbers greater than 0 and less than 1
the empty blob
the empty string
.falsezero
negative numbers
.nul



