What Are The Relational Operators?
Relational Operators are those operators which are used to compare two values or variables.
Points To Consider In Relational Operation
- If X or Y equals null and is integers, doubles, dates, or DateTime then it will return false.
- A non-null string or id value is always greater than a null value.
- If X and Y are ids then, they must reference the same value otherwise a runtime error occurs.
- If X or Y is an id and the other value is a string then the string is validated and treated as an id.
- X and Y can not be boolean.
Operator Precedence
- () {} ++ —
- -x ! +x
- */
- +-
- < > <= >= instanceOf
- == !=
- &&
- ||
- += == *=
