Macros |
Macros can be used in any logical expressions; however, each macro must be predefined before use. They are defined in the section on the page. The [def] line must precede the macros definition. Macro definition syntax:
where BOOL_EXPR is a logical expression. All macros return a Boolean value, arguments are not supported. In fact, a macro is just a shorthand notation for an logical expression. Definition of the is_localhost and local_ip macros: they are to be true if the request was sent from one of the specified IP addresses or from one of the IP addresses listed in the file.
Definition of a worktime() macro: if the current system time is between 9:30 and 13:00 or 14:00 and 18:15, the macro is to be true.
|