velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edgar Poce <ep...@fibertel.com.ar>
Subject Re: null in velocity
Date Thu, 02 Dec 2004 12:41:44 GMT
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: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message