Index: openacs-4/packages/acs-templating/www/doc/tagref/if.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/tagref/if.adp,v diff -u -r1.5.2.2 -r1.5.2.3 --- openacs-4/packages/acs-templating/www/doc/tagref/if.adp 6 Jun 2023 09:27:56 -0000 1.5.2.2 +++ openacs-4/packages/acs-templating/www/doc/tagref/if.adp 13 Jul 2023 12:48:33 -0000 1.5.2.3 @@ -9,11 +9,13 @@ : If
The if tag is used to output a template section only -when certain conditions are met. It has the form <if expression>.
- +when certain conditions are met. It has the form <if +expression>.x0 [@@ -81,7 +83,8 @@not
]op
x1x2 ...
Any of these operators can be prefixed with
not
to invert the outcome.
<if \@x\@ eq 5>True</if> ++<if \@x\@ eq 5>True</if> <if \@x\@ eq "Greta">True</if> <if \@x\@ ne 5>True</if> @@ -109,7 +112,8 @@ <if \@s\@ not nil>True</if> <if \@z\@ in "Greta" "Fred" "Sam">True</if> -<if \@z\@ not in "Greta" "Fred" "Sam">True</if>+<if \@z\@ not in "Greta" "Fred" "Sam">True</if> +
Any legal variables that may be referenced in the template may @@ -120,7 +124,8 @@ grouped correctly:
<if \@datasource.variable\@ eq "blue sky"> <td bgcolor="#0000ff"> - </if>+ </if> +
The elseif tag may be used following an if block to specify an alternate conditional template section.
@@ -132,7 +137,8 @@ </elseif> <else> <td bgcolor="#ffffff"> - </else>+ </else> +
The else tag may be used following an if block to specify an alternate template section when a condition is @@ -142,7 +148,8 @@ </if> <else> <td bgcolor="#ffffff"> - </else> + </else> +
Compound expressions can be created by combining terms with the and and or keywords, as illustrated above. Any number of statements may be connected in this fashion. There is