lets look at this:
local table = {
["example key"] = function(arguments)
end;
}
how do I pass arguments into this function using the key as a specification for that function?
lets look at this:
local table = {
["example key"] = function(arguments)
end;
}
how do I pass arguments into this function using the key as a specification for that function?
You should change your variable name, but...
t["example key"](...)
it was just an example, but thanks, now i know the syntax for it.
yw
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Not sure what you're asking. You want something other than just table"example key" ?
Actually that's exactly what I needed to know. I just didn't know the syntax for passing arguments, simpler than I thought.