is there a way of running a script from a string - so for example at right now, I'm just using if():
Code: Select all
if (x) { pgm1(); }
else if (y) { pgm2(); }
else if (z) { pgm3(); }
Code: Select all
evaluate('pgm' + currentPgm + '();');
Many thanks!
Rufus