exit function

Stops function execution.

Syntax:
exit function

sdlBasic will continue program execution from the line below the calling statement.

Example:
function myFunction(a)
    if a>5 then: exit function : end if
    print(a)
end function
for a = 1 to 10
    myFunction(a)    
next

See also function command.