If-then-elseif/case; Is there a better way in ez

If-then-elseif/case; Is there a better way in ez

Thursday 20 November 2003 2:09:01 am - 2 replies

Author Message

Tore Skobba

Thursday 20 November 2003 2:30:14 am

Hmm switch/case ?

Like
{switch match=$:item.Rating}
{case match=gt(1.25)}
do some stuff
{/case}
{case match=gt(2.35)}
do some stuff
{/case}
{/switch}

Tristan Koen

Thursday 20 November 2003 4:15:52 am

Yes... thats exactly what I was looking for. I must have missed it in the docs.
Thanks very much for the help.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.