! is a type of
Logical Operator and is read as "
NOT" or "
Logical NOT". This operator is used to perform "logical NOT" operation, i.e. the function similar to
Inverter gate in digital electronics.
👁 Image
Syntax:
!Condition
// returns true if the conditions is false
// else returns false
Below is an example to demonstrate ! operator:
Example:
Output:
Condition yielded True
Condition yielded False