Return

Return from Subroutines (Methods) or Interrupt Service Routines (ISR).

Syntax 1 (Function): Return Expression
Syntax 2 (Procedure or Isr): Return See also: Methods

Example

  Function test(a as byte)
    return a  ' Returns with a value
  endFunc
 
Procedure test1(a as byte)
    if a>0 then
      Return  ' immediate exit of the Procedure
    else
      Print str(a)
    end if
  endProc