Function: Confirm

Synopsis

Shows a Windows message for debugging purposes with an "OK" button and a "Cancel" button.
This returns true if "OK" was pressed and false if "Cancel" was pressed.

Syntax

Confirm( <message> )
  • message: The message to show in the confirmation message box.

Examples

local Result = Confirm("Something, something, skulls on Barts car.") 

if Result then
	-- User clicked OK
else
	-- User clicked Cancel
end

Notes

No additional notes.

History

Unknown.

Back to top