FORMULA LANGUAGE


Using reserved words
Example

Formula language includes a set of reserved words that perform special functions:
Reserved word syntaxDescription
DEFAULT fieldName := valueAssociates a value with a field. If the field exists in the document being processed, its current value is used. If the field does not exist, the document is treated as if the field does exist and the DEFAULT value is used.
ENVIRONMENT variable := textValueAssigns a value to an environment variable in the user's notes.ini file (Windows, OS/2, UNIX) or Notes Preferences file (Macintosh).
FIELD fieldName := valueAssigns a value to a field in the current document. If the field does not exist, it is created; if it already exists, the contents are replaced.
REM ["remarks"]

REM [{remarks}]

Inserts documentation into the formula without affecting its function.
SELECT logicalValueSpecifies whether or not the current document is valid for processing in view selection, replication, and agent formulas.
A reserved word is always the first word in a statement. By convention, reserved words are entered in uppercase. You can enter them in lowercase, but Lotus Domino converts them to uppercase when saving a formula.

The fieldName and variable specifications to reserved words are names, not text constants. Do not enclose them in parentheses.

Example
See Also