The condition is evaluated to determine if it's a boolean (true/false) or if it's not null.

#if ($car.fuel)
        ...
#end

Regards
Edgar

Check http://jakarta.apache.org/velocity/user-guide.html#Conditionals


THE ULTIMATE SUBBIAH wrote:
How to check for null in velocity
for eg. I load a class in the context Class:: car

#if ($car.getFuel() = null ?? )

This does not work.
Thx

_________________________________________________________________
The happening world of BPO! Know all that you need to know! http://www.bpowatchindia.com/msn/ Keep in step with what’s hot!



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



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



Reply via email to