function promptuser()
local answer = gg.prompt("do you want to proceed?", "yes")
if answer == "yes" then
gg.alert("proceeding...")
else if answer == "no" then
gg.alert("aborting...")
gg.skipcurrentscript() -- exit the current script
else
gg.alert("please enter 'yes' or 'no'")
promptuser()
end
end
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Question
ENDUP
function promptuser()
local answer = gg.prompt("do you want to proceed?", "yes")
if answer == "yes" then
gg.alert("proceeding...")
else if answer == "no" then
gg.alert("aborting...")
gg.skipcurrentscript() -- exit the current script
else
gg.alert("please enter 'yes' or 'no'")
promptuser()
end
end
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.