2 Replies Latest reply on Mar 25, 2009 8:51 AM by webvalue

    How to write "and" in MXML expression?

    webvalue Level 1
      I need to put 2 conditions for the enabled property of a button in mxml. I tried this:

      <mx:Button width="50" label="Action" enabled="{var1 &gt; 1 and var2 &lt; 2}" />

      "and" is not working, &&, & don't work either. what should be used here? thanks!