Hi Peter (and all) ...
I finally got around to checking out your proposed method, and
unfortunately it does not work. It seems to interpret anything within a
CDATA block as a string.
Here is what I tried, and it does not work.
I also tried the following ... without luck:
Or write the && operator as &&
- Gordon
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Tuesday, October 03, 2006 2:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Conditional Login inside
On Monday 02 October 2006 18:41, Sam Shrefler wrote:
> Is there anyway to put a condition inside { } for example:
> enabled="{checkA == something && checkB == somethingElse}"
Create a mx:Script block and encapsulate your logic in a function, then:
enabled="{isThingEnabled(checkA,checkB)}"
--
Tom
Sho:
Yep...i rushed the reply right after writing it on my blog...blog was right, reply was wrong...thanks
Peter:
Thanks, i never thought of doing if that way..
Thanks for all the replies
Sam
On 10/2/06, Peter Hall <[EMAIL PROTECTED]> wrote:
Yeah - I used that at first ... Although I think the DeMorgan's law
would be:
!( A && B ) = !A || !B
So then ...
A && B = !( !A || !B ) ...
Sam Shrefler wrote:
> Daniel:
>
> Thanks...the other thing I tried that worked was using the ||, so as
> per DeMorgans law:
>
> A && B = !A || !B
>
Daniel:
Thanks...the other thing I tried that worked was using the ||, so as per DeMorgans law:
A && B = !A || !B
Thanks
Sam
On 10/2/06, Daniel Wabyick <[EMAIL PROTECTED]> wrote:
Ran into the same thing. Its that '&' is an entity in XML. So you can use:enabled="{checkA == something
Ran into the same thing. Its that '&' is an entity in XML. So you can use:
enabled="{checkA == something && checkB == somethingElse}"
Sam Shrefler wrote:
> Is there anyway to put a condition inside { } for example:
>
> enabled="{checkA == something && checkB == somethingElse}"
>
> Flex Bu
8 matches
Mail list logo