Ruby - Operator Boolean Negation

Introduction

The negation operator ! in the expression means not.

You can use the "not equals" ( != ) operator between the left and right sides of an expression:

!(1==1)         #=> false 
1!=1            #=> false 

Alternatively, you can use not instead of !:

not( 1==1 )        #=> false 

Related Topic