polluxtech
Programmer
Hi all friends, need help:
I have a string array ["abc","efg","hig"] named methods and three functions
abc() efg() hig()
I want to do something like this:
if methodname=="abc"
call abc
else if methodname=="efg"
call efg
else methodname == "hig"
call hig
but this is not neat,right? I would like to write single line code like below, but this is not allow in aspect scripting, what and how to do? help
call methods
I have a string array ["abc","efg","hig"] named methods and three functions
abc() efg() hig()
I want to do something like this:
if methodname=="abc"
call abc
else if methodname=="efg"
call efg
else methodname == "hig"
call hig
but this is not neat,right? I would like to write single line code like below, but this is not allow in aspect scripting, what and how to do? help
call methods