On 3/24/02 7:59 PM, "Jon Scott Stevens" <[EMAIL PROTECTED]> wrote:
> on 3/24/02 4:47 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>> #set($foo = ( 3 == 3 ))
>>
>
> What happens with something convoluted like:
>
> #set($foo = ($bar.A == true))
>
> ?
> Or
>
> #set ($foo = ("#macr("joe")" == $bar.B))
>
> Yucky.
>
Yep - you can make yucky things with this.
However, what you would have to do otherwise is
#set($foo = false)
#if("#macr('joe')" == $bar.B)
#set($foo = true)
#end
Which I think in some ways is yecchier - the one line set makes it clear
what you are doing, I think, in a lot faster, more readablt way.
geir
--
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>