Class: Even

system.rules. Even


new Even( [value])

Evaluates if the value is even.

Parameters:
Name Type Argument Default Description
value number <optional>
NaN

) The value to evaluate.

Implements:
Example
var cond ;
var Even = system.rules.Even ;

cond = new Even( 0 ) ;
trace( cond.eval() ) ; // true

cond = new Even( 1 ) ;
trace( cond.eval() ) ; // false

cond = new Even( 2 ) ;
trace( cond.eval() ) ; // true

cond = new Even( 3 ) ;
trace( cond.eval() ) ; // false

Extends

Members


value :number

The value to evaluate.

Type:
  • number
Default Value:
  • NaN

value :number

The value to evaluate.

Type:
  • number
Default Value:
  • NaN

Methods


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