local menu = gg.multiChoice(val,nil,"")
if menu == nil then
os.exit() -- user clicked 'cancel'
end
local index = 0
while menu[index] ~= true do
index = index + 1
if index > #menu then
os.exit() -- no checkboxes selected
end
end
for i,v in pairs(menu) do
print(val[index]) --test with print
end
I have changed this, it works but there is still an error when selecting the selected value only responds to the above and the rest the values do not match but follow the top one selected first, can you change this which I have changed a bit?