velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manish" <prol...@gmx.net>
Subject Re: Compare null
Date Wed, 06 Oct 2004 08:19:08 GMT
I want to different things on "null" and "false" so this solution won't help
much.
Thanks anyway!

- Manish

----- Original Message -----
From: "Kalyani Kale" <kalyani@ascindia.com>
To: "'Velocity Users List'" <velocity-user@jakarta.apache.org>
Sent: Wednesday, October 06, 2004 12:51 PM
Subject: RE: Compare null


> #set ( $displayAddr = $p.getDisplayaddressbool())
>
> if($displayAddr)
> //if displayAddr is not null
> #else
> //control will come here if displayAddr is null #end
>
> If the above code is inside a for loop, the u'll have to set $displayAddr
to
> false at the end of the loop.
>
> #set ( $displayAddr = false )
>
>
> Kalyani
>
> -----Original Message-----
> From: Manish [mailto:prolist@gmx.net]
> Sent: Wednesday, October 06, 2004 12:24 PM
> To: Velocity Users List
> Subject: Compare null
>
> How can I compare 'null' in my velocity template for if condition???
> The following results in an error.
>
> #if(null == $p.getDisplayaddressbool()){
> }
>
> TIA,
> - Manish
>
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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