exit - winnichenko/BLOB-87 GitHub Wiki
exit
exit
This function causes program execution to be interrupted after the TIC
function finishes. Again, the entire TIC function is always executed - including potentially any code that follows exit()
. See the example below for a demo of this behavior.
Once execution is interrupted you are returned to the console.
Example
-- title: exit API Command Demo (Lua)
-- author: StinkerB06
function TIC()
cls(0)
print("Press Z to exit to console.",1,1)
if btn(4) then
exit()
trace("This code still runs!")
end
end