Jump to content
  • 0

Help Me Number Selection


Aaron-Auto
 Share

Question

1 answer to this question

Recommended Posts

  • 0
local sel = gg.choice({'Select A\n for 1', 'Select B\n for 2'}, nil, 'Choose what you want:')
if sel == nil then
	os.exit()
end
if sel == 1 then
	gg.toast('You choosed 1 (A)')
-- Your code for A variant
end
if sel == 2 then
	gg.toast('You choosed 2 (B)')
-- Your code for B variant
end

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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.