Manish said:
> How can I compare 'null' in my velocity template for if condition???
> The following results in an error.
>
> #if(null == $p.getDisplayaddressbool()){
> }

you're confusing java with VTL.  VTL has no null keyword or token. (though it
was discussed favorably in ages long past.)

i've found the most reliable way to test for nulls is:

#if( "$!myboolean" == "" ) foo is null! #end

Nathan Bubna
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to