Booleans : Boolean variable « Language Basics « Ruby






Booleans


puts 100 if true
puts 100 if false
puts "It's true!" if nil

 

Related examples in the same category

1.return boolean value from method