It's not about the syntax, more about what i can/can't do with them.
The idea should be this
I think code "should" be correct. Is it also logically correct? the cfg.variable should be in another file, which is imported at the beginning (so it should be visible.
SLASH_COLD1 = "/lolcommand"
SlashCmdList.COLD = function (msg, editbox)
-- want to set a varable here. should be something like cfg.variable = true. is it possible?
ReloadUI() -- can i use this function?