Packagesystem.rules
Classpublic class DivBy
InheritanceDivBy Inheritance Object
Implements Rule

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

Example :

                  
     import system.rules.Rule ;
     import system.rules.DivBy ;
     
     var cond:Rule ;
     
     cond = new DivBy( 4 , 2 ) ;
     trace( cond.eval() ) ; // true
     
     cond = new DivBy( 5 , 2 ) ;
     trace( cond.eval() ) ; // false
     
               



Public Properties
 PropertyDefined By
  value1 : *
The first value to evaluate.
DivBy
  value2 : *
The second value to evaluate.
DivBy
Public Methods
 MethodDefined By
  
DivBy(value1:* = null, value2:* = null)
Creates a new DivBy instance.
DivBy
  
eval():Boolean
Evaluates the specified condition.
DivBy
Property Detail
value1property
public var value1:*

The first value to evaluate.

value2property 
public var value2:*

The second value to evaluate.

Constructor Detail
DivBy()Constructor
public function DivBy(value1:* = null, value2:* = null)

Creates a new DivBy instance.

Parameters
value1:* (default = null) — The first value to evaluate.
 
value2:* (default = null) — The second value to evaluate.
Method Detail
eval()method
public function eval():Boolean

Evaluates the specified condition.

Returns
Boolean