Forums / Setup & design / Logical operators in templates: registration bug?

Logical operators in templates: registration bug?

Author Message

Paul Borgermans

Monday 11 August 2003 10:13:49 am

Apparently, (some of) the logical operators do not seem to work in 3.1 and all svn versions up to now:

for example

{section show=(fetch(content,list_count,hash(parent_node_id,$module_result.node_id))|gt(0))}
yes
{section-else}
no
{/section}

results always in "no"

or even

{let a=3}
{section show=($a|gt(0))}
yes
{section-else}
no
{/section}
{/let}

also displays no as the output.

Can anyone confirm this and other logical operators that do not work ("and" for instance)?

It seems that the operators never get executed as if they are not registered (but nothing of that in the debug output)

-paul

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