Arguments

The data and options passed to a function are called arguments. Generally, arguments are numeric values, strings, or logical expressions. There are only two functions for which this is not the case: CHANGED and FOUND. These functions’ arguments must be a variable because these functions supply information about the status of a variable.

The syntax for each Enrichment function is:

FUNCTION(arg1,[arg2,arg3,arg4,arg5,arg6,arg7])

In this example, FUNCTION has seven arguments. Arguments within brackets are optional. Enrichment uses the default value for optional arguments left unspecified.

Note: Do not include brackets when specifying functions in a rule file.

Some arguments have default values that Enrichment uses if you do not explicitly specify the argument. For example, if a function call is made as follows:

%%answer = FUNCTION(arg1,,arg3)

Enrichment sets the value for arg2 to its default. Note that no value was entered for arg2. Likewise, arg2 and arg3 could be set to their default values as follows:

%%answer = FUNCTION(arg1)

No separators (that is, commas) are required since only the first argument is specified. If a function is called using all default argument values or if there are no arguments, the parentheses are still required. For example:

%%answer = FUNCTION()