There seems to be some restriction on using the eval() function on the left hand side of an if…else conditional statement. Is anyone aware of a work around so that essentially the following loop could be programmed?
for (var i=0; i<=10; i++){
if(eval("myVar1"+i) >= eval("myVar2"+i)){
whatever}
}
Thanks for any feedback.
Mike
for (var i=0; i<=10; i++){
if(eval("myVar1"+i) >= eval("myVar2"+i)){
whatever}
}
Thanks for any feedback.
Mike
Comment