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.4 -r1.5 --- openacs-4/packages/acs-templating/www/doc/tagref/if.adp 7 Aug 2017 23:48:03 -0000 1.4 +++ openacs-4/packages/acs-templating/www/doc/tagref/if.adp 25 Apr 2018 08:42:18 -0000 1.5 @@ -11,8 +11,7 @@
The if tag is used to output a template section only when certain conditions are met.
-<if \@x\@ eq 5>True</if> +<if \@x\@ eq 5>True</if> <if \@x\@ eq "Greta">True</if> <if \@x\@ ne 5>True</if> @@ -37,8 +36,7 @@ <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>
<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.
@@ -131,8 +128,7 @@ </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,8 +138,7 @@ </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