#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.

prev page 1st page next page
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software | DevNotes | Licensing | Authors | Pikt-Users | Pikt-Workers | Links | SiteIndex | ContactUs
Page best viewed at 1024x768.   Page last updated 2006-09-10.   This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.   Copyright © 1998-2006 Robert Osterlund.  All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title