RestartMe

Exits the current task, then execution will start at the beginning of the task the next time it is ran.  This is only valid inside a task.

Syntax: RestartMe

Example:

Task test()
  Dim char as uByte

  WaitWhile RCIF=0  ' wait for a character at the serial port

  char = RCREG	  ' get the character

  IF char=10 THEN	  ' If the character is 10 then restart this task at
    RestartMe	  ' the beginning again
  End If

  ' The rest of the code goes here

End Task

Also See: Multitasking