If you convert the string values of true and false, they will both convert to the Boolean true value because both string values are nonzero values : Boolean : Data Type Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Data Type » Boolean »

 

If you convert the string values of true and false, they will both convert to the Boolean true value because both string values are nonzero values


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        trace(Boolean("true"));  // Displays: true
        trace(Boolean("false"));  // Displays: true
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Data Type
» Boolean