Class: BooleanRule

system.rules. BooleanRule


new BooleanRule()

Evaluates a type string expression and return the property value who corresponding in the target object specified in this evaluator.

Implements:
Example
var BooleanRule = system.rules.BooleanRule ;

var cond1 = new BooleanRule( true  ) ;
var cond2 = new BooleanRule( false ) ;
var cond3 = new BooleanRule( cond1 ) ;

trace( cond1.eval() ) ; // true
trace( cond2.eval() ) ; // false
trace( cond3.eval() ) ; // true

Extends

Members


condition :boolean|system.rules.Rule

The condition to evaluate.

Type:

Methods


<static> BooleanRule#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.