local found = false
local room_id = GetVariable("room_id")
for k,v in ipairs(room) do
if v.id == room_id then
found = true
break --跳出循环
end
end
if found==true then Note("1") else Note("2") end
function query()
local room_id = GetVariable("room_id")
for k,v in ipairs(room) do
if v.id == room_id then return 1,Note("1") end
end
return 2,Note("2")
end