Forums / General / if-then-else with complex condition

if-then-else with complex condition

Author Message

Vjeran Vlahovic

Friday 10 September 2004 1:17:19 pm

Hi guys...
Can someone help me to write this in eZ template way:

if($menu.is_selected && $menu.level == 0)
   echo('xyz');

I was hoping to find some useful examples in that book I purchased :-(

http://www.netgen.hr/eng

Paul Borgermans

Friday 10 September 2004 2:12:00 pm

{section show=and($menu.is_selected,$menu.level|eq(0))}
xyz
{/section}

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Vjeran Vlahovic

Saturday 11 September 2004 5:39:49 am

Thanks Paul on quick answer...
Sorry about that comment on book, didn't notice list of logical operators in Appendix A as I expected that in Chapter 3. Although, few more examples wouldn't hurt :-)

http://www.netgen.hr/eng