Rule functions — gull system handbook

Reference list of the gull system rule language functions: logical, mathematical, trigonometric, text, list, table and check functions, with arguments and meaning.

Rule functions

Every function of the rule language by category, as the Functions button offers them. Case does not matter; an optional argument is marked with a question mark.

An argument with a question mark is optional, an ellipsis means any number. How to pick and insert a function is in Write a rule on a parameter; value notation and operators in The rule language.

Logical

Mathematical

Trigonometric

Text

Lists (pipe-separated text)

Tables (columns and rows from 1, row 1 of a table is the header)

Checks

Conditions in table functions

A condition is text starting with `=`, `<>`, `<`, `>`, `<=` or `>=`; without a prefix it means equals. The asterisk is a wildcard: `"=Red"`, `">30"`, `"<>A*"`, or built from a field: `"=" & [Colour]`.

A number is matched numerically; text regardless of case but without trimming spaces. The `"NEAREST"` mode needs no sorted table and takes the closest value in either direction.

The function `VZHLED(texture, colour, scale?, angle?)` still runs but is not offered: it is the older notation from when an appearance had one rule. Today it has Colour, Texture and Texture rotation separately — see Connect a finish to the customer's inputs.