From 608ad6ec81778d9122c27e341387885e8255e42b Mon Sep 17 00:00:00 2001 From: "P. J. McDermott" Date: Mon, 30 Sep 2013 10:02:43 -0400 Subject: [PATCH] README: Document flow control commands. --- README | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/README b/README index 0eface8..f48626f 100644 --- a/README +++ b/README @@ -71,6 +71,50 @@ The following variables are set: * `DOCUMENT_URI` is the current filename. * `LAST_MODIFIED` is the modification date of the current document. +Flow Control Commands +--------------------- + +The flow control commands are: + + + + + + +If `test_expression` evaluates to false, processing of basic commands is +suspended until the next `elif`, `else`, or `endif` is encountered. If +`test_expression` evaluates to true, processing of basic commands is +suspended between any following `elif` or `else` commands and the next +`endif` command. + +`test_expression` is a Perl expression, which is passed to Perl's +`eval()` function. Variables may be expanded but should be quoted. + +The following example will output "foo is bar" if the variable `foo` is +set to the value "bar": + + + foo is bar + + +The following example checks the SSI interpreter and uses the correct +expression syntax for either ssic or Apache HTTPd 2.2 `mod_include`: + + + + + foo is bar + + + + + foo is bar + + + +This is the recommended way to check the value of the variable +`__SSIC__`. + Copyright Information ===================== -- 2.31.1