| Package | system.logic |
| Class | public class IfUndefined |
| Inheritance | IfUndefined IfTask Task Object |
Example :
import examples.process.Message;
import system.process.logic.IfUndefined;
var task:IfUndefined ;
var value:* ;
task = new IfUndefined(value,new Message("then #1"),new Message("else #1")) ;
task.run() ; // then #1
value = null ;
task = new IfUndefined(value,new Message("then #2"),new Message("else #2")) ;
task.run() ; // else #2
value = "hello" ;
task = new IfUndefined(value,new Message("then #3"),new Message("else #3")) ;
task.run() ; // else #3
See also
| Method | Defined By | ||
|---|---|---|---|
Creates a new IfUndefined instance. | IfUndefined | ||
![]() |
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 | |
| IfUndefined | () | Constructor |
public function IfUndefined(value:*, thenTask:Action = null, elseTask:Action = null, ... elseIfTasks)Creates a new IfUndefined instance.
Parametersvalue:* — The value to evaluate.
| |
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.
|