What does this bit of code mean?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4511301/javascript-shorthand-what-does-the-operator-mean-when-used-in-an-assignme">Javascript Shorthand - What Does the &#39;||&#39; Operator Mean When Used in an Assignment?</a>  </p>
</blockquote>



<p><code>var variable = obj1 || obj2;</code></p>

<p>Does it mean this?</p>

<pre><code>var variable;

if (obj1)
{
    variable = obj1;
}
else if (obj2)
{
    variable = obj2:
}
</code></pre>

<p>Is it considered bad practise?</p>
