الجمل الشرطيه في القوالب

الجمل الشرطيه



<lezaz:if/>
AttributeDescription        Default
--------------------------------------------
id           referance for this syntax use like lezaz#id             Null
condition    condition if syntax                                     1==1
pass         return this value if pass                               1
fail         return this value if fail                               0
print        print result attr if value = any pass like 1,true,yes   0

inside code you can use <lezaz_else/>

Example
--------
<lezaz:ifid='myid'condition="lezaz$parm==1"pass="yes"fail="no"print="false"/>

<lezaz:ifid='myid'condition="lezaz$parm==1"pass="yes"fail="no"print="false">
the value for $parm = lezaz$parm and its 1 <br>
<lezaz_else/>
the value for $parm = lezaz$parm and its not 1
</lezaz:if>
the result for if syntax is lezaz#myid