[PHPTAL] if / then in PHPTal

Jörg Wündrich jwuendrich at web.de
Thu Apr 6 15:38:58 CEST 2006


Hello Community,

I've just a little question because of a condition.

I've got a table and 2 variables. 

My Problem: I can't differentiate between the 2 variables i 've got.

If one of this variables has a string inside PHPTal should write it. Thats no Problem with:

f.e.:         <td class="raumweissmitte"  tal:content="item/serold">Test</td>

So far so good.

But my problem is:

If item/serold is empty, Tal should write something like this:

<td class="raumweissmitte"  tal:condition="not: item/serold">Here should be a Code!!!!!! (DomTT)</td>

If item/serold has no string inside and item/seroldlang also, he schould simply write "---"

serold =="ABC"
serold == "" go to   seroldlang == "ABC" (write Code)
serold =="" go to seroldlang =="" --> write --- instead


Please help me.

Thanks in advance

Joerg Wuendrich
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192




More information about the PHPTAL mailing list