Operator not equal ( != ) or ( <> )

numeric op1 <> numeric op2 or numeric op1 != numeric op2

If Op1 is not equal to Op2, the return value will be true. If Op1 is equal to Op2, the return value will be false.

Example

The return value of the following statement is false.

4<>4

string op1 <> string op2 or string op1 != string op2

If Op1 is not equal to Op2, the return value will be true. If Op1 is equal to Op2, the return value will be false.

Example

The return value of the following statement is true.

"string abc" != "string abcd"

date op1 <> date op2  or date op1 != date op2

If Op1 is not equal to Op2, the return value will be true. If Op1 is equal to Op2, the return value will be false.

Example

The return value of the following statement is true.

ToDate(1999, 10, 10) != ToDate(1999, 5, 10)

time op1 <> time op2 or time op1 != time op2

If Op1 is not equal to Op2, the return value will be true. If Op1 is equal to Op2, the return value will be false.

Example

The return value of the following statement is true.

ToTime(9, 10, 10) <> ToTime(10, 10, 10)

datetime <> datetime op2 or datetime != datetime op2

If Op1 is not equal to Op2, the return value will be true. If Op1 is equal to Op2, the return value will be false.

Example

The return value of the following statement is true.

ToDateTime(1999, 10, 10, 5, 10, 10) != ToDateTime(1999,10, 10, 10, 10, 10)