Packagesystem.rules
Classpublic class GreaterThan
InheritanceGreaterThan Inheritance Object
Implements Rule

Used to indicates if a value is greater than another value.

Example :

                  
     import system.rules.Rule ;
     import system.rules.GreaterThan ;
     
     var rule:Rule ;
     
     rule = new GreaterThan( 1 , 1 ) ;
     trace( rule.eval() ) ; // false
     
     rule = new GreaterThan( 1 , 2 ) ;
     trace( rule.eval() ) ; // false
     
     rule = new GreaterThan( 3 , 2 ) ;
     trace( rule.eval() ) ; // true
     
               



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

The first value to evaluate.

value2property 
public var value2:*

The second value to evaluate.

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

Creates a new GreaterThan 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