The inequality (!=) operator returns true if its operands are not equal. It accepts operands of all data typesstrings, numbers, Booleans, and dates.

string != string number != number Boolean != Boolean date != date unequal(string, string) unequal(number, number) unequal(Boolean, Boolean) 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 != 2 // Output: True 1 != 1 // Output: False unequal("Cat","Dog") // Output: True "1" != 2 // Type mismatch error 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.

Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.
A new tool that blends your everyday work apps into one. It’s the all-in-one workspace for you and your team
(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.

Other formula components used in this example:

if – Thomas Frank
About the Author

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.

🤔 Have an UB Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas

🤔 Have a Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas