new Odd( [value])
Evaluates if the value is odd.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
value |
number |
<optional> |
NaN | ) The value to evaluate. |
- Implements:
Example
var cond ; var Odd = system.rules.Odd ; cond = new Odd( 0 ) ; trace( cond.eval() ) ; // false cond = new Odd( 1 ) ; trace( cond.eval() ) ; // true cond = new Odd( 2 ) ; trace( cond.eval() ) ; // false cond = new Odd( 3 ) ; trace( cond.eval() ) ; // true </pre>
Extends
Methods
-
<static> Odd#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.