Description
Compare the value on the left side of the operator with the value on the right side of the operator. Returns true when the two values are not equal.
Syntax
x != y;
//this returns true when x is not equal to y.
Example Code
val = digitalRead (pin_number); // let val = HIGH or LOW
if (val != HIGH) // When the val is not high
{
digitalWrite (13, LOW); //Turn off the built-in LED
}