why parenthesis is needed inside a simple if expression?

"Zemian Deng" <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi list,

Is there a reason following doesn't work?

<#assign xs = [0,1,2,3,4,5,6,7,8,9]/>
Breaking loop if x > 5:
<#list xs as x>
<#if x > 5 ><#break>
<#else>${x}
</#if>
</#list>

In my test script, it only works if I add parenthesis to (x > 5).

-Z

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.