if statement with multiple conditions in ruby
It is difficult to find the examples demonstrating how to combine two conditions in the if statement of ruby, I tried and found following code is ok:
tmp = rand(10)
if ((tmp > 5) && (ie77.text.include? ‘fine’))
puts “fine”
else
sleep 7
end
Categories: ruby