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.1 -r1.5.2.2 --- openacs-4/packages/acs-templating/www/doc/tagref/if.adp 3 Sep 2021 09:16:24 -0000 1.5.2.1 +++ openacs-4/packages/acs-templating/www/doc/tagref/if.adp 6 Jun 2023 09:27:56 -0000 1.5.2.2 @@ -9,37 +9,11 @@ : If
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 "Greta">True</if> +when certain conditions are met. It has the form <if expression>. -<if \@x\@ ne 5>True</if> -<if \@x\@ ne "Greta">True</if> - -<if \@x\@ lt 5>True</if> -<if \@x\@ le 5>True</if> - -<if \@x\@ gt 5>True</if> -<if \@x\@ ge 5>True</if> - -<if \@x\@ odd>True</if> -<if \@x\@ even>True</if> - -<if \@x\@ between 3 6>True</if> -<if \@x\@ not between 3 6>True</if> - -<if \@x\@ eq 5 and \@y\@ eq 2>True</if> -<if \@x\@ ge 5 or \@y\@ le 2>True</if> - -<if \@s\@ nil>True</if> -<if \@s\@ not nil>True</if> - -<if \@z\@ in "Greta" "Fred" "Sam">True</if> -<if \@z\@ not in "Greta" "Fred" "Sam">True</if>
x0 [@@ -106,6 +80,36 @@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 "Greta">True</if> + +<if \@x\@ ne 5>True</if> +<if \@x\@ ne "Greta">True</if> + +<if \@x\@ lt 5>True</if> +<if \@x\@ le 5>True</if> + +<if \@x\@ gt 5>True</if> +<if \@x\@ ge 5>True</if> + +<if \@x\@ true>True</if> +<if \@x\@ false>False</if> + +<if \@x\@ odd>True</if> +<if \@x\@ even>True</if> + +<if \@x\@ between 3 6>True</if> +<if \@x\@ not between 3 6>True</if> + +<if \@x\@ eq 5 and \@y\@ eq 2>True</if> +<if \@x\@ ge 5 or \@y\@ le 2>True</if> + +<if \@s\@ nil>True</if> +<if \@s\@ not nil>True</if> + +<if \@z\@ 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