local users = {
{id = 1, name = "Alice", age = 30},
{id = 2, name = "Bob", age = 25}
}
-- ユーザーを検索
for _, user in ipairs(users) do
if user.id == 1 then
print(user.name) -- "Alice"
end
end
To embed this project on your website, copy the following code and paste it into your website's HTML: