Skip to content
paul59 edited this page Dec 21, 2019 · 21 revisions

exit

exit

Description:

Interrupts program execution and returns to the console when the TIC function ends.

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

Clone this wiki locally