The following example sets the task to inactive. This will prevent the task from executing the
rest of the task.
Sub Main
CurrentTask.Active = 0
End Sub