The unless keyword runs its body when a condition is false, providing a natural alternative to if not or if !. section 6.1.1
A negative condition
unless x > 100 puts "Small number!" else puts "Big number!" end This is equivalent to testing x <= 100 with if. The unless/else form works, but if/else usually reads more clearly. section 6.1.1
Ruby also permits unless in modifier position, placing the condition after the statement; use it when the negative condition remains easy to follow. section 6.1.1

