#if-#endif
You can customize config files by means of the #if, #elif, #else & #endif preprocessing directives. The format is
#if <machine class> <lines> [optional] #elif <machine class> [optional] [or: #elsif, #elseif] <lines> [optional] #else [optional] <lines> [optional] #endif [or: #fi]where <machine class> can be a series of host names, host aliases, or host groups, separated by either the |, &, or ! set operators. | indicates set union, & set conjunction, and ! set complement. You can also use parentheses, ( and ), in the class specifications.
#elsif and #elseif are alternate forms of #elif, and #fi is interchangeable with #endif.
Rather than #if, #elif, #else, and #endif, you may instead use their synonyms #ifsys, #elifsys, #elsesys, and #endifsys if you prefer. You may freely intermix these alternate forms, but for clarity's sake, it's probably best not to (for example, don't use #if-#endifsys, or #ifsys-#else-#endif).
You can nest #if-#endif's up to sixty four levels deep.
![]() | next page ![]() |