Packagesystem.rules
Classpublic class Not
InheritanceNot Inheritance Object
Implements Rule

Used to perform logical negation on a specific condition.

Example :

                  
     import system.rules.BooleanRule ;
     import system.rules.Not ;
     import system.rules.Rule ;
     
     var cond1:Rule = new BooleanRule( true  ) ;
     var cond2:Rule = new BooleanRule( false ) ;
     
     var no1:Not = new Not( true ) ;
     var no2:Not = new Not( false ) ;
     var no3:Not = new Not( cond1 ) ;
     var no4:Not = new Not( cond2 ) ;
     
     trace( no1.eval() ) ; // false
     trace( no2.eval() ) ; // true
     trace( no3.eval() ) ; // false
     trace( no4.eval() ) ; // true
     
               



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

The conditional rule to evaluate.

Constructor Detail
Not()Constructor
public function Not(rule:* = null)

Creates a new Not instance.

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

Evaluates the specified condition.

Returns
Boolean