Flash Player 5.
Boolean(
expression
)
expression
An expression to convert to a Boolean value.
A Boolean value or the value expression
, as described below.
Function; converts the parameter expression
to a Boolean value and returns a value as follows:
expression
is a Boolean value, the return value is expression
.expression
is a number, the return value is true
if the number is not zero, otherwise the return value is false
.expression
is a string, the toNumber
method is called and the return value is true
if the number is not zero, otherwise the return value is false
.expression
is undefined, the return value is false
.expression
is a movie clip or an object, the return value is true
.