The logical NEGATION or NOT operator (!)

If X is true, !X evaluates to false.

 

Don't confuse the symbols

Don't confuse the symbol for the NOT operator, (an exclamation mark) with the symbol for the inclusive OR operator (a pair of vertical bar characters).

Sometimes the little dot on the exclamation mark is difficult to see.