Using else Clauses in if Statements : If « Statement « Ruby
- Ruby
- Statement
- If
Using else Clauses in if Statements
temperature = 43
if temperature > 65 && temperature < 85
puts "Picnic time!"
else
puts "Sorry, no picnic today."
end
Related examples in the same category