| Package | system.rules |
| Class | public class Null |
| Inheritance | Null Object |
| Implements | Rule |
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
| Property | Defined By | ||
|---|---|---|---|
| strict : Boolean
The strict mode (strict: value === null or value == null if not strict). | Null | ||
| value : *
The value to evaluate. | Null | ||
| Method | Defined By | ||
|---|---|---|---|
Null(value:* = null, strict:Boolean = false)
Creates a new Null instance. | Null | ||
eval():Boolean
Evaluates the specified condition. | Null | ||
| strict | property |
public var strict:BooleanThe strict mode (strict: value === null or value == null if not strict).
| value | property |
public var value:*The value to evaluate.
| Null | () | Constructor |
public function Null(value:* = null, strict:Boolean = false)Creates a new Null instance.
Parametersvalue:* (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 ===.
|
| eval | () | method |
public function eval():BooleanEvaluates the specified condition.
ReturnsBoolean |