Packagesystem.rules
Classpublic class Undefined
InheritanceUndefined Inheritance Object
Implements Rule

Evaluates if the value is undefined.

Example :

                  
     import system.rules.Rule ;
     import system.rules.Undefined ;
     
     var value:;
     
     var cond1:Rule = new Undefined( value ) ;
     
     value = {} ;
     
     var cond2:Rule = new Undefined( value ) ;
     
     trace( cond1.eval() ) ; // true
     trace( cond2.eval() ) ; // false
     
               



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

The value to evaluate.

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

Creates a new Undefined instance.

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

Evaluates the specified condition.

Returns
Boolean