Using unless as Modifiers with boolean operator : unless as Modifiers « Statement « Ruby






Using unless as Modifiers with boolean operator


temperature = 76
puts "Picnic time!" unless temperature < 65 || temperature > 85

 

Related examples in the same category

1.Using unless as Modifiers