velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Castura <jcast...@kw.igs.net>
Subject RE: Nesting in Velocity
Date Fri, 09 Feb 2001 02:23:48 GMT
Thanks Don! I'm checking that in now...

> My question was spawned by using a single "=" instead of "==" to test for
> equivelance of two variables. I was referencing the latest documentation,
> but didn't have this simple operator. So leave it to me to get caught up on
> the simple things...Doh!
> 
> 
> Can this be added to the Velocity docs?
> 
> 
> I suggest to append to the "Logical Operators" section:
> 
> 
> Testing equivelance of Velocity variables:
> 
>          #set ($foo = "some value")
>          #set ($bar = "some other value")
> 
> 	   #if ($foo == $bar)
>             do something here if they equate
>          #else
>             do something here is they are not the same
>          #end

Mime
View raw message