Skip to content
Denis Maslennikov edited this page Nov 13, 2017 · 4 revisions

exit

exit

Description:

Interrupt program execution and return to the console at the END of the TIC function.

Example:

Example

-- title:  exit API Command Demo (Lua)
-- author: StinkerB06

t=0

function TIC()

	if btn(4) then exit() end

	cls(0)
	print("Press Z to exit to console.",1,1)
	t=t+1
end
You can’t perform that action at this time.