Using unless as Modifiers : unless as Modifiers « Statement « Ruby






Using unless as Modifiers


temperature = 76

puts "Picnic time!" unless temperature < 65

 

Related examples in the same category

1.Using unless as Modifiers with boolean operator