explanation of the following javascript
<p>currently stuck on a piece of code as im not sure what the below code does, can someone explain it to me</p>

<pre><code>var limits = settings.show != null &amp;&amp; settings.show &lt; length ? settings.show : length;
</code></pre>
