I am using alternative freemarker syntax(the one with square brackets). It works fine but I am not able to figure out how to use if condition to check if a number is greater than or less than. Following is the syntax I have
[#if ${numberCoupons} <= 1]
[#assign couponsText = 'coupon']
[/#if]
Here “<” symbol fails. Do you know what am I doing wrong here.
Also is there any documentation for list of entire directives that can be used with alternative syntax of freemarker?
You should be able to use any of the following:
I would use the parens.
This is detailed at:
http://freemarker.sourceforge.net/docs/dgui_template_exp.html#dgui_template_exp_comparison
Scroll down just a little to the last paragraph in that section that starts with “There is a little problem”