1 Reply Latest reply on Jul 15, 2010 11:03 AM by smagfx2

    Using ternary expression inside mxml tag

    iamcootis Level 1

      I have a tag that looks like this:

       

      <mx:ViewStack width="100%" height="300" selectedIndex="{(model.TemplateList.length > 0) ? 0 : 1}">

       

      Obviously I can't use the '>' sign inside of a tag. Is there any way I can get away with this?