FORMULA LANGUAGE


Writing formulas that evaluate to a result
Example

The final statement of the following formulas must evaluate to a result:


These formulas may be as simple as a single field, constant, or @function, or may contain multiple statements, use temporary variables, modify fields, and produce side-effects. In all cases, however, their final statement must be a value suitable for the result.

The reserved word SELECT is prepended to the logical statement that terminates a replication or selection formula if SELECT is not explicitly specified. These formulas run against every document in the database (replication formula) or view (selection formula) to determine their inclusion or exclusion in the replication process or the view. The @All function returns the value True, so the formula "SELECT @All" includes all documents.

Example
See Also