new Not( [condition])
Used to perform logical negation on a specific condition.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
condition |
boolean | system.rules.Rule |
<optional> |
false | The condition to evaluate. |
- Implements:
Example
var BooleanRule = system.rules.BooleanRule ; var Not = system.rules.Not ; var cond1 = new BooleanRule( true ) ; var cond2 = new BooleanRule( false ) ; var no1 = new Not( true ) ; var no2 = new Not( false ) ; var no3 = new Not( cond1 ) ; var no4 = new Not( cond2 ) ; trace( no1.eval() ) ; // false trace( no2.eval() ) ; // true trace( no3.eval() ) ; // false trace( no4.eval() ) ; // true
Extends
Members
-
value :boolean|system.rules.Rule
-
The condition to evaluate.
Type:
- boolean | system.rules.Rule
- Default Value:
-
- false
Methods
-
<static> Not#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.