Lua string inside variable reference
snippet in lua

Lua string inside variable reference

user5882

fat_greek_wedding = 0;
nationality = "greek";

_G["fat_" .. nationality .. "_wedding"] = 1;