| Package | system.rules |
| Class | public class DivBy |
| Inheritance | DivBy Object |
| Implements | Rule |
Example :
import system.rules.Rule ;
import system.rules.DivBy ;
var cond:Rule ;
cond = new DivBy( 4 , 2 ) ;
trace( cond.eval() ) ; // true
cond = new DivBy( 5 , 2 ) ;
trace( cond.eval() ) ; // false
| Property | Defined By | ||
|---|---|---|---|
| value1 : *
The first value to evaluate. | DivBy | ||
| value2 : *
The second value to evaluate. | DivBy | ||
| Method | Defined By | ||
|---|---|---|---|
DivBy(value1:* = null, value2:* = null)
Creates a new DivBy instance. | DivBy | ||
eval():Boolean
Evaluates the specified condition. | DivBy | ||
| value1 | property |
public var value1:*The first value to evaluate.
| value2 | property |
public var value2:*The second value to evaluate.
| DivBy | () | Constructor |
public function DivBy(value1:* = null, value2:* = null)Creates a new DivBy instance.
Parametersvalue1:* (default = null) — The first value to evaluate.
| |
value2:* (default = null) — The second value to evaluate.
|
| eval | () | method |
public function eval():BooleanEvaluates the specified condition.
ReturnsBoolean |