From: Alex Rousskov Date: Fri, 26 Mar 2010 13:52:36 +0000 (-0600) Subject: Added if-statement documentation. X-Git-Tag: SQUID_3_2_0_1~93^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5735d30b451527debaa5a3d049da0cf671b25821;p=thirdparty%2Fsquid.git Added if-statement documentation. --- diff --git a/src/cf.data.pre b/src/cf.data.pre index eb50206d5a..8b780b1e37 100644 --- a/src/cf.data.pre +++ b/src/cf.data.pre @@ -59,6 +59,31 @@ COMMENT_START configuration files. + Conditional configuration + + If-statements can be used to make configuration directives + depend on conditions: + + if + ... regular configuration directives ... + [else + ... regular configuration directives ...] + endif + + The else part is optional. The keywords "if", "else", and "endif" + must be typed on their own lines, as if they were regular + configuration directives. + + These individual conditions types are supported: + + true + Always evaluates to true. + false + Always evaluates to false. + = + Equality comparison of two integer numbers. + + SMP-Related Macros The following SMP-related preprocessor macros can be used.