"Geir Magnusson Jr." <[EMAIL PROTECTED]> writes:
> 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.
I much prefer one line sets when evaluating a boolean expression.
It's lean and mean.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>