|| operator is or. : Boolean Operators « Language Basics « Ruby
- Ruby
- Language Basics
- Boolean Operators
|| operator is or.
# When you use || or or, if any of the statements are true, the code executes:
ruby = "nifty"
programming = "fun"
if ruby == "nifty" or programming == "fun"
puts "or!"
end
Related examples in the same category