title: ruby loop next case example
body: <p>I am trying to loop through multiple statements, but want to go through each one once, example:</p>
  
  <pre><code>while count &lt; 5 do
    count+= (not sure if this how ruby increments counts)
    puts "In condition one"
    next if count &gt; 1
    puts "In condition two"
    next if count &gt; 1
    #..
  end
  </code></pre>
  
  <p><strong>Update 1:</strong></p>
  
  <p>Thanks for the reply, what I'm trying to do is loop through an array and have each element of the array be applied to 10 different conditions. For example: array[has 100 elements] element 1 gets condition 1, element 2 goes on to condition 2, and so on. Since there are 10 conditions, the 11th element in the array would get condition 1 again, and so on (condition 1 condition 2 condition 3 ...)</p>
  
  <p><strong>Update 2:</strong></p>
  
  <p>Thanks again for taking the time to reply. I apologize that I'm not being very clear. The array contains emails. I have 10 email servers and want to send the 200 emails I have in my array through each server (only 1 email per server). I hope that makes sense</p>