control_flow/unless_basic.rb
tests/_examples/control_flow/unless_basic.rb in the metorex repository.
# Basic unless statement
x = 5
unless x > 10
puts "x is not greater than 10"
end
unless x < 0
puts "x is not negative"
end
tests/_examples/control_flow/unless_basic.rb in the metorex repository.
# Basic unless statement
x = 5
unless x > 10
puts "x is not greater than 10"
end
unless x < 0
puts "x is not negative"
end