Class: DivBy

system.rules. DivBy


new DivBy( [value1] [, value2])

Evaluates if the division of a value by another returns 0.

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

The first value to evaluate.

value2 number <optional>
NaN

The second value to evaluate.

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

var cond ;

cond = new DivBy( 4 , 2 ) ;
trace( cond.eval() ) ; // true

cond = new DivBy( 5 , 2 ) ;
trace( cond.eval() ) ; // false

Extends

Members


value1 :number

The first value to evaluate.

Type:
  • number

value2 :number

The second value to evaluate.

Type:
  • number

Methods


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