Packagesystem.rules
Classpublic class Null
InheritanceNull Inheritance Object
Implements Rule

Evaluates if the value is null.

Example :

                  
     import system.rules.Rule ;
     import system.rules.Null ;
     
     var cond:Rule ;
     
     cond = new Null( undefined , true ) ;
     trace( cond.eval() ) ; // false
     
     cond = new Null( undefined ) ;
     trace( cond.eval() ) ; // true
     
     cond = new Null( null ) ;
     trace( cond.eval() ) ; // true
     
     cond = new Null( "hello" ) ;
     trace( cond.eval() ) ; // false
     
               



Public Properties
 PropertyDefined By
  strict : Boolean
The strict mode (strict: value === null or value == null if not strict).
Null
  value : *
The value to evaluate.
Null
Public Methods
 MethodDefined By
  
Null(value:* = null, strict:Boolean = false)
Creates a new Null instance.
Null
  
eval():Boolean
Evaluates the specified condition.
Null
Property Detail
strictproperty
public var strict:Boolean

The strict mode (strict: value === null or value == null if not strict).

valueproperty 
public var value:*

The value to evaluate.

Constructor Detail
Null()Constructor
public function Null(value:* = null, strict:Boolean = false)

Creates a new Null instance.

Parameters
value:* (default = null) — The value to evaluate.
 
strict:Boolean (default = false) — Indicates if the evaluation is strict or not. Use the operator == if strict is false or ===.
Method Detail
eval()method
public function eval():Boolean

Evaluates the specified condition.

Returns
Boolean