How to construct a string which will pass if(variable)
<p>I'm a jquery novice. I've boiled my code down to the simplest way to describe my problem. But I am having trouble wording it.</p>

<pre><code>if(var1 &amp;&amp; var2){
  // this works
}

searchMe = var1+" &amp;&amp; "+var2;
if(searchMe){
  // this doesn't work
}

searchMe = "var1"+" &amp;&amp; "+"var2";
if(searchMe){
  // still doesn't work
}
</code></pre>

<p>I would like to be able to construct that "<code>searchMe</code>" variable based on user input. Can someone tell me a better way to do this? Thanks!</p>
