You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Vincenz Braun <vb...@evelox.de> on 2003/02/21 17:46:46 UTC
[JEXL] if statements, assignments
Hello,
i searched the jexl parser and documentation (sources :) for proper use
of if statements and variable assignments.
I tried:
${if (myDate != null) formatter.format(myDate) else ''}
${if (myDate != null) formatter.format(myDate); else '';}
${myVar = 'TestString'}
${myVar = 'TestString';}
All resulting in invalid expression exceptions:
What is wrong in my code?
Thanks in advance,
Vincenz