TaskDone Function

Returns the completion status of a task.

Syntax
TaskDone (taskIdentifier)

Parameters

taskIdentifier
Specify the task name or task number as an integer value or an expression. A task name is the function name used in an Xqt statement or a function started from the Run window or Operator window.

Task number (integer) range is as follows:
  • Normal tasks: 1 to 32
  • Background task: 65 to 80
  • Trap tasks: 257 to 267

Return Values
True if the task has been completed, False if not.

Description
Use TaskDone to determine if a task has completed.

See Also
TaskState, TaskWait

TaskDone Function Example

Xqt 2, conveyor
Do
    .
    .
Loop Until TaskDone(conveyor)