That is happenning because you are setting the label text to a
combination of bound and static (unbound) text. If all you really
want to see is either "Answers Yes!" or "Answers No!", try something
like the following:
<mx:Label
text="{data.AdLink=='Yes'? 'Answers Yes!' : 'Answers No!'}" />
Notice how the label text is conditionally bound to only one of the
strings you want to display.
HTH,
Doug
--- In [email protected], "mazarflex" <[EMAIL PROTECTED]> wrote:
>
>
> my if statement is as fallows
>
> <mx:Label text="if{data.AdLink=='Yes'}{'Answers Yes!'}else{'Answers
> No!'}"/>
>
> My Printscreen <http://www.microsupportservices.com/ps/help.gif>
>
> it is returning some sort of if statement. as you can see in my
> printscreen; the column AD is the {data.AdLink} so it is putting true
> for the data it is returning, but all i am asking to get back is
> 'Answers Yes! or 'Answers No!
>
> can someone tell me why this is happening?? thanks a lot-
> [EMAIL PROTECTED]
>