Author Topic

Xavier Serna

Wednesday 14 February 2007 1:48:03 am

Comment47751

Hi Mateo,

you have available logical operators for this. In particular, your code:

if(($var=='test')||($var=='test2'))

would be

{if or($var|eq('test'),$var|eq('test2'))}

I recommend you to consult the reference docs that are so useful for questions like this.

http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/logical_operations

hope this helps!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205