Class: True

system.rules. True


new True(value)

Evaluates if the condition is true.

Parameters:
Name Type Description
value boolean | system.rules.Rule

The value to evaluate.

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

var cond1 = new True( true  ) ;
var cond2 = new True( false ) ;
var cond3 = new True( cond1 ) ;
var cond4 = new True( cond2 ) ;

trace( cond1.eval() ) ; // true
trace( cond2.eval() ) ; // false
trace( cond3.eval() ) ; // true
trace( cond4.eval() ) ; // false
</pre>

Extends

Members


value :boolean|system.rules.Rule

The condition to evaluate.

Type:
Default Value:
  • false

value :number

The condition to evaluate.

Type:
  • number
Default Value:
  • NaN

value :number

The condition to evaluate.

Type:
  • number
Default Value:
  • NaN

Methods


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