Class: IsBoolean

system.rules. IsBoolean


new IsBoolean( [value])

Evaluates if the condition is a boolean.

Parameters:
Name Type Argument Default Description
value Object <optional>
null

The value to evaluate.

Implements:
Example
var IsBoolean = system.rules.IsBoolean ;

trace( (new IsBoolean( 0 )).eval() ) ; // false
trace( (new IsBoolean( 1 )).eval() ) ; // false

trace( (new IsBoolean( true )).eval() ) ; // true
trace( (new IsBoolean( false )).eval() ) ; // true

trace( (new IsBoolean( new Boolean(true) )).eval() ) ; // true
trace( (new IsBoolean( new Boolean(false) )).eval() ) ; // true

Extends

Members


value :Object

The value to evaluate.

Type:
  • Object
Default Value:
  • null

Methods


<static> IsBoolean#eval()

Evaluates the specified object.


eval()

Evaluates the specified condition.

Inherited From:
Implements:

toString()

Returns the string representation of this instance.

Inherited From:
Implements:
Returns:

the string representation of this instance.