Operator equal ( == )

numeric op1 == numeric op2

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

Example

The return value of the following statement is false.

5==4

string op1 == string op2

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

Example

The return value of the following statement is false.

"string abcd" == "string abc"

date op1 == date op2

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

Example

The return value of the following statement is false.

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

time op1 ==  time op2

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

Example

The return value of the following statement is false.

ToTime(9, 10, 10) == ToTime(10, 10, 10)

datetime == datetime op2

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

Example

The return value of the following statement is false.

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