How to stop looping if the value is same (have double values)?
<p>How to stop looping if the value is same (have double values)?
For example, result:</p>

<pre><code>1. Value = 1
2. Value = 5
3. Value = 5
4. Value = 7
5. Value = 9
</code></pre>

<p>There's double values, in looping number two and three.
The condition if in looping have double values(same) it will stop with using alert('Do not enter with same value'), something like that. How to?</p>

<p>Thanks.</p>
