title: Ruby: if condition inside each condition
body: <p>I need to compare array element inside "each" condition as shown below:</p>
  
  <pre><code>a = ["config_left","mon_left","acc_left",lg_left..]
  a.each { |x| 
    ff.div(:id, x).fireEvent("onmouseup")
    if x == 1   ##&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;is this right? 
      Watir::Waiter::wait_until{ff.button(:id, "add").enabled?}
    else
      sleep 7
  end
  </code></pre>
  
  <p>Is <code>x == 1</code> right? Tried with <code>x == "mon_left"</code> but even that doesn't work. Please help on it.</p>