# Boolean

A Boolean value is one that is either true or false. ActionScript also converts the values `true` and `false` to 1 and 0 when appropriate. Boolean values are most often used with logical operators in ActionScript statements that make comparisons to control the flow of a script. For example, in the following script, the movie plays if the variable `password` is `true`:

    onClipEvent(enterFrame) {
    	if (userName == true && password == true){
    		play();
    	}
    }

See Using built-in functions and Logical operators.