Functions
Syntax
%function(_<arg1>_, _<arg2>, ...)
Description
Functions allow for complex expansions at run time. There are many built-in expansions. Many modules also define their own expansions. The module-specific expansions are documented in each module.
- function
-
The name of the function. e.g.
md5
orsql
, etc. - <args>
-
A list of comma-separated arguments.
Each argument is parsed using the same rules as parsing edit statements. The arguments can be single-quoted string, double-quoted strings, attribute references, expansion, or other function calls.
Each function defines its own list of arguments. Please consult the documentation for a function in order to determine what the function call syntax is for that function.
Example
if (&User-Name == %md5(&NAS-Identifier)) {
reject
}
Examples
&reply.Reply-Message := %sql(SELECT name FROM mytable WHERE username = %{User-Name})