An if statement with no else : if « Statement « Flash / Flex / ActionScript






An if statement with no else

 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        if (1 > 10) {
          trace(1>10);
        }
    }
  }
}

        








Related examples in the same category

1.If Statements
2.Performing Actions Conditionally
3.If Statement with boolean constant
4.If statement with else
5.Chaining if statements
6.Performing Complex Conditional Testing