Skip to content
StackZ edited this page Jun 17, 2021 · 1 revision

Script function: Prompt

UniversalEdit.Prompt(Question);

This function expects 1 parameter.

  • Question: The Cancel / Confirm question to display.

Example

-- The line below will ask for "Do you want to continue?".
local Result = UniversalEdit.Prompt("Do you want to continue?");

-- The lines below will show you basic handling of that operation.
if (Result) then
    -- Do something, if user confirmed.
else
    -- Do something if user cancelled.
end

Clone this wiki locally