Can you set a variable name equal to another variables value?
<p>I am interested in knowing if its even possible. </p>

<p>One example is the variable already exists.  </p>

<p>foo = 1;
var bar = 'foo';</p>

<p>if('foo' == 1)?  Is there a way to do that.</p>

<p>Is there a way to say something like bar == foo.variablename</p>
