Class: IsNumber

system.rules. IsNumber


new IsNumber( [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 IsNumber = system.rules.IsNumber ;

trace( (new IsNumber( 0 )).eval() ) ; // true
trace( (new IsNumber( 1 )).eval() ) ; // true
trace( (new IsNumber( NaN )).eval() ) ; // true

trace( (new IsNumber( true )).eval() ) ; // false
trace( (new IsNumber( null )).eval() ) ; // false

Extends

Members


value :Object

The value to evaluate.

Type:
  • Object
Default Value:
  • null

Methods


<static> IsNumber#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.