Alternative to using eval to call slightly different function names?
<p>My question was going to be how to do this at all but I came across <code>eval</code> which seems to work. I'm told <code>eval</code> is evil and the explanations for why went way over my head so my question is:</p>

<p>Is there anything wrong with using <code>eval</code> like this, or other ways to do it at all?</p>

<pre><code>var condition1=false;
var condition2=true;
var condition3=false;
//etc

if (condition1){x = "1"}
else if (condition2){x = "2"}
else if (condition3){x = "3"};
//etc

var thing1= 11;
var thing2= 22;
var thing3= 33;
//etc

eval ("thing" + x)
</code></pre>
