| Package | system.logic |
| Class | public class IfTrue |
| Inheritance | IfTrue IfTask Task Object |
Example :
import examples.process.Message;
import system.process.logic.IfTrue;
var task:IfTrue ;
var value:uint = 10 ;
task = new IfTrue( value == 10 ) ;
task.addThen( new Message("then") ) ;
task.addElse( new Message("else") ) ;
task.run() ; // then
See also
| Method | Defined By | ||
|---|---|---|---|
Creates a new IfTrue instance. | IfTrue | ||
![]() |
Defines the action when the condition block use the else condition. | IfTask | |
![]() |
Defines an action when the condition block use the elseif condition. | IfTask | |
![]() |
Defines the main conditional rule of the task. | IfTask | |
![]() |
Defines the action when the condition block success and must run the 'then' action. | IfTask | |
![]() | clone():* [override]
Returns the shallow copy of the object. | IfTask | |
![]() | isLocked():Boolean
Returns true if the object is locked. | Task | |
![]() | lock():void
Locks the object. | Task | |
![]() | notifyFinished():void
Notify an ActionEvent when the process is finished. | Task | |
![]() | notifyStarted():void
Notify an ActionEvent when the process is started. | Task | |
![]() |
Removes the 'then' action. | IfTask | |
![]() |
Removes the 'else' action. | IfTask | |
![]() |
Removes the 'conditional rule' of the task. | IfTask | |
![]() |
Removes the 'then' action. | IfTask | |
![]() | run(... arguments):void [override]
Run the process. | IfTask | |
![]() | unlock():void
Unlocks the display. | Task | |
| IfTrue | () | Constructor |
public function IfTrue(condition:*, thenTask:Action = null, elseTask:Action = null, ... elseIfTasks)Creates a new IfTrue instance.
Parameterscondition:* — The condition who must be true.
| |
thenTask:Action (default = null) — The Action reference to defines the 'then' block in the 'if' conditional task.
| |
elseTask:Action (default = null) — The Action reference to defines the 'else' block in the 'if' conditional task.
| |
... elseIfTasks — The Array of ElseIf instance to initialize the 'elseif' blocks in the 'if' conditional task.
|