Class: LessThan

system.rules. LessThan


new LessThan( [value1] [, value2])

Used to indicates if a value is greater than another value.

Parameters:
Name Type Argument Default Description
value1 number <optional>
Nan

The first value to evaluate.

value2 number <optional>
Nan

The second value to evaluate.

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

var rule ;

rule = new LessThan( 1 , 1 ) ;
trace( rule.eval() ) ; // false

rule = new LessThan( 1 , 2 ) ;
trace( rule.eval() ) ; // true

rule = new LessThan( 3 , 2 ) ;
trace( rule.eval() ) ; // false

Extends

Members


value1 :number

The first value to evaluate.

Type:
  • number
Default Value:
  • NaN

value2 :number

The second value to evaluate.

Type:
  • number
Default Value:
  • NaN

Methods


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