# unequal

Learn how to use the Boolean inequality (!=) operator and unequal() function in Notion formulas.
The inequality (`!=`) operator returns true if its operands are not equal. It accepts operands of all data types - strings, numbers, Booleans, and dates.
1
string != string
2
number != number
3
Boolean != Boolean
4
date != date
5
6
unequal(string, string)
7
unequal(number, number)
8
unequal(Boolean, Boolean)
9
unequal(date, date)
Good to know: Notion does not allow for comparisons between different data types. You must convert all data to a common type before making a comparison (e.g. by using format() to create a string value).
You can also use the function version, `unequal()`.

## Example Formulas

1
1 != 2 // Output: True
2
3
1 != 1 // Output: False
4
5
unequal("Cat","Dog") // Output: True
6
7
"1" != 2 // Type mismatch error
8
9
2^3 != 10 // Output: True
Good to know: The inequality (`!=`) operator cannot be chained in a Notion formula. A formula like `1 != 2 != 3` won't work. Use the and operator to get around this - e.g. `1 != 2 and 2 != 3`.

## Example Database

The example database below contains a Cat Status property that will inform you on whether or not your lawyer is a cat.

### “Cat Status” Property Formula

1
(prop("Type") != "Cat") ? "Your lawyer is not a cat." : "Your lawyer is a cat."
If you understand this well, you may want to check out the more complex example on the equality (`==`) operator's page.