define truth for template variables
This commit is contained in:
parent
f99024e980
commit
591083a87f
1 changed files with 10 additions and 1 deletions
|
|
@ -2817,6 +2817,15 @@ To programmers conditions are nothing new, but to designers they can often be co
|
||||||
<i>Example:</i> <tmpl_if isTrue> It was true!<tmpl_else> It was false! </tmpl_if>
|
<i>Example:</i> <tmpl_if isTrue> It was true!<tmpl_else> It was false! </tmpl_if>
|
||||||
<p/>
|
<p/>
|
||||||
|
|
||||||
|
<p>Truth or falsehood is determined by the following rules:
|
||||||
|
<ul>
|
||||||
|
<li><p>Variables not used in this template are false.</p></li>
|
||||||
|
<li><p>Variables which are undefined are false.</p></li>
|
||||||
|
<li><p>Variables which are empty are false.</p></li>
|
||||||
|
<li><p>Variables which are equal to zero are false.</p></li>
|
||||||
|
<li><p>All other variables are true.</p></li>
|
||||||
|
</ul></p>
|
||||||
|
|
||||||
<b>Loops</b><br/>
|
<b>Loops</b><br/>
|
||||||
Loops iterate over a list of data output for each pass in the loop. Loops are slightly more complicated to use than plain variables, but are considerably more powerful.
|
Loops iterate over a list of data output for each pass in the loop. Loops are slightly more complicated to use than plain variables, but are considerably more powerful.
|
||||||
<p/>
|
<p/>
|
||||||
|
|
@ -2860,7 +2869,7 @@ Loops come with special condition variables of their own. They are __FIRST__, __
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p/>|,
|
<p/>|,
|
||||||
lastUpdated =>1102704289,
|
lastUpdated =>1106608811,
|
||||||
},
|
},
|
||||||
|
|
||||||
'354' => {
|
'354' => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue