| Package | system.logic |
| Class | public class IfFalse |
| Inheritance | IfFalse IfTask Task Object |
Example :
import examples.process.Message;
import system.process.logic.IfFalse;
var task:IfFalse ;
var value:uint = 10 ;
task = new IfFalse( value == 10 ) ;
task.addThen( new Message("then") ) ;
task.addElse( new Message("else") ) ;
task.run() ; // else
See also
| Method | Defined By | ||
|---|---|---|---|
Creates a new IfFalse instance. | IfFalse | ||
![]() |
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 | |
| IfFalse | () | Constructor |
public function IfFalse(condition:*, thenTask:Action = null, elseTask:Action = null, ... elseIfTasks)Creates a new IfFalse instance.
Parameterscondition:* — The condition who must be false.
| |
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.
|