jeff wrote:
>
> I wanted to check in a template to see $foo was a valid reference. I
> tried
>
> #if (!$foo)
> stuff
> #end
>
You would think this would be the right way. Hm. I'll take a look.
geir
> then i tried
>
> #if ($foo = null)
> stuff
> #end
>
> then I tried
>
> #if ($foo)
> #else
> stuff
> #end
>
> finally I suceeded with
>
> #if ($foo)
>
> #else
> stuff
> #end
>
> Is there a more elegant solution?
--
Geir Magnusson Jr. [EMAIL PROTECTED]
Velocity : it's not just a good idea. It should be the law.
http://jakarta.apache.org/velocity