|
| |||||||||||||
do executes all its arguments and all the expressions in the content,
and returns the value of the last one.
<do 2 3 4/>
4<do 2> 3 4 </do>
4do allows you to put many statements where only one is expected; for example, as the
corresponding action of an if condition, or to execute a sequence of instructions
that return a single result when generating HTML output.
<if> 3.<is 0/>
"never happens"
else
<do>
<echo "3 is not more than zero"/>
"happens"
</do>
</if>![]() | "happens" |
do with no arguments returns null .
© Copyright 2007 Clear Methods, Inc.