new Null( [value] [, strict])
Evaluates if the condition is null.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
value |
object |
<optional> |
null | The value to evaluate. |
strict |
boolean |
<optional> |
false | This flag indicates if the condition use |
- Implements:
Example
var Null = system.rules.Null ; var cond ; 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
Extends
Members
-
strict :boolean
-
The value to evaluate.
Type:
- boolean
- Default Value:
-
- false
-
value :object
-
The value to evaluate.
Type:
- object
- Default Value:
-
- undefined
Methods
-
<static> Null#eval()
-
Evaluates the specified object.
-
eval()
-
Evaluates the specified condition.
- Inherited From:
- Implements:
-
toString()
-
Returns the string representation of this instance.
- Inherited From:
- Implements:
Returns:
the string representation of this instance.