Code Editor
Learn
Control Flow in Ruby

Not

Finally, Ruby has the boolean operator not (!). ! makes true values false, and vice-versa.

!true # => false !false # => true
Report a Bug
If you see a bug or any other issue with this page, please report it here.