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().

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.

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

unequal
College Info Geek on Notion

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.

​
My name is Thomas Frank, and I'm a Notion-certified writer, YouTuber, and template creator. I've been using Notion since 2018 to organize my personal life and to run my business and YouTube channel. In addition to this formula reference, I've created a free Notion course for beginners and several productivity-focused Notion templates. If you'd like to connect, follow me on Twitter.
Last modified 19d ago
Copy link
On this page
Example Formulas
Example Database
View and Duplicate Database
β€œCat Status” Property Formula