Or inside if statement

133 views
Skip to first unread message

Markus

unread,
Apr 17, 2012, 6:55:33 AM4/17/12
to closure-temp...@googlegroups.com
Hello everyone,
there's a way to put "or" condition inside if statement?

This:

{if $opt_count!=undefined || $opt_tot|=undefined}

{/if}

Gives me an error during compilation.

Thx

Nick Santos

unread,
Apr 17, 2012, 8:24:50 AM4/17/12
to closure-temp...@googlegroups.com

Kai Huang

unread,
Apr 17, 2012, 2:12:52 PM4/17/12
to closure-temp...@googlegroups.com
Also, there's no such value as 'undefined'. You probably want
     {if $opt_count or $opt_tot}


On Tuesday, April 17, 2012 5:24:50 AM UTC-7, Nick Santos wrote:

Markus

unread,
Apr 18, 2012, 4:38:47 AM4/18/12
to closure-temp...@googlegroups.com
Thanks to all :-)
Reply all
Reply to author
Forward
0 new messages