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 -N -r1.3.2.5 -r1.3.2.6
--- openacs-4/packages/acs-templating/www/doc/tagref/if.adp 22 Jun 2016 07:48:44 -0000 1.3.2.5
+++ openacs-4/packages/acs-templating/www/doc/tagref/if.adp 5 Jul 2016 12:14:22 -0000 1.3.2.6
@@ -47,8 +47,8 @@
op
x1x2 ...
The operator op
- determines the number operands
-(x
+ determines the number
+operands (x
0
, ...
x
@@ -112,7 +112,8 @@
Any legal variables that may be referenced in the template may also be used in if statements. Words not surrounded with -the commerical at sign (\@) are interpreted literally.
Phrases with spaces in them must be enclosed in quotes to be grouped correctly:
<if \@datasource.variable\@ eq "blue sky"> @@ -133,9 +134,9 @@ </else>
The else tag may be used following an if block -to specify an alternate template section when a condition is not -true:
+The else tag may be used following an if +block to specify an alternate template section when a condition is +not true:
<if \@datasource.variable\@ eq "blue"> <td bgcolor="#0000ff"> </if> @@ -144,9 +145,9 @@ </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 no -way to group statements to change the order of evaluation.
When a variable is tested using the nil operator, it +and and or keywords, as illustrated above. +Any number of statements may be connected in this fashion. There is +no way to group statements to change the order of evaluation.
When a variable is tested using the nil operator, it will return true if the variable is undefined or if the value of the variable is an empty string.