Packagesystem.rules
Classpublic class Zero
InheritanceZero Inheritance Object
Implements Rule

Evaluates if the value is a number and is 0.

Example :

                  
     import system.rules.Rule ;
     import system.rules.Zero ;
     
     var cond:Rule ;
     
     cond = new Zero( 0 ) ;
     trace( cond.eval() ) ; // true
     
     cond = new Zero( 10 ) ;
     trace( cond.eval() ) ; // false
     
               



Public Properties
 PropertyDefined By
  value : *
The value to evaluate.
Zero
Public Methods
 MethodDefined By
  
Zero(value:* = null)
Creates a new Zero instance.
Zero
  
eval():Boolean
Evaluates the specified condition.
Zero
Property Detail
valueproperty
public var value:*

The value to evaluate.

Constructor Detail
Zero()Constructor
public function Zero(value:* = null)

Creates a new Zero instance.

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

Evaluates the specified condition.

Returns
Boolean