new GreaterThan( [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 GreaterThan = system.rules.GreaterThan ; var rule ; rule = new GreaterThan( 1 , 1 ) ; trace( rule.eval() ) ; // false rule = new GreaterThan( 1 , 2 ) ; trace( rule.eval() ) ; // false rule = new GreaterThan( 3 , 2 ) ; trace( rule.eval() ) ; // true </pre>
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> GreaterThan#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.