new GreaterOrEqualsThan( [value1] [, value2])
Used to indicates if a value is greater or equal 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 GreaterOrEqualsThan = system.rules.GreaterOrEqualsThan ; var rule ; rule = new GreaterOrEqualsThan( 1 , 1 ) ; trace( rule.eval() ) ; // true rule = new GreaterOrEqualsThan( 1 , 2 ) ; trace( rule.eval() ) ; // false rule = new GreaterOrEqualsThan( 3 , 2 ) ; trace( rule.eval() ) ; // true
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> GreaterOrEqualsThan#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.