Posted 17 March 2013 - 03:26 PM
Is there to store a function in a variable and call it inside a function?
something like this…
something like this…
local function foo(x, y, z)
if x == y then
z
end
end
local function anotherFoo()
print("equal")
end
foo(1, 1, anotherFoo)