Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Function name from string variable — Gideros Forum

Function name from string variable

saeyssaeys Member
edited August 2015 in General questions
Hi all, I have a function name in string variable, and I would like to call this function. How do I do this?

Like this:
function A()
-- code here
end
 
function B()
-- some other code here
end
 
if itsasunnyday then
x = A
else
x = B
end
 
-- here I would like to call the x function
Sign In or Register to comment.