how to add the Logical operator in MXML

 

For example , you have something like this:

<mx:VBox visible=”{this.numChildren > 555 }” />

The preceding code will not compile,The compiler raises the following error:- “The entity name must immediately follow the ‘>’ in the entity reference.”.This behavior existed since Flex 2.0. Logical OR operator works in the same scenario. It’s the use of ‘&&’ that causes the compiler error.

 

For greater than, use > and for less than, use <

So it will be

<mx:VBox visible=”{this.numChildren &gt; 555 }” />