unequal

This article may contain affiliate links.This article may contain affiliate links.

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
list != list

unequal(string, string)
unequal(number, number)
unequal(boolean, boolean)
unequal(date, date)
unequal(list, list)

string.unequal(string)
number.unequal(number)
boolean.unequal(boolean)
date.unequal(date)
list.unequal(list)
Code language: JavaScript (javascript)

Good to know: Notion now allows for comparisons between different data types, and the inequality operator (!=) will act as a strict inequality operator. For example, "1" != 1 will return true

You can also use the function version, unequal().

Copy link to heading
1 != 2 /* Output: true */

1 != 1 /* Output: false */

unequal("Cat","Dog") /* Output: true */

"Cat".unequal("Dog") /* Output: true */

"1" != 2 /* Output: false */

2^3 != 10 /* Output: true */
Code language: JavaScript (javascript)

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.

Copy link to heading

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

Copy link to heading
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
thomasfrank.notion.site
Copy link to heading
(prop("Type") != "Cat") ? "Your lawyer is not a cat." : "Your lawyer is a cat."
Code language: JavaScript (javascript)

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
thomasjfrank.com
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