Search

empty() | Beginner’s Guide to Notion Formula

post type
notion
tutorial
formula
status
published
author
created time
2024/10/23 12:55
description
Discover how to utilize the empty() function in Notion formulas to check for empty values effortlessly! This comprehensive guide breaks down the structure of empty(), explains how it works, and provides practical examples. Learn to enhance your data validation processes and streamline your workflows in Notion.
cover image
Frame 10.png
1 more property

This is your sign to try empty()

empty() is crucial for checking whether a value is empty, null, or absent. This function can help users create dynamic formulas that react based on the presence or absence of data. In this blog post, we will explore the structure of the empty() function, break down how it works, and provide examples to illustrate its utility.
For this guide, I referenced the Notion Formula documentation and added my own examples and explanations.

Summary

Name
Description
How it works
Example
empty()
valuates the provided value and returns a boolean value: true if the value is empty, and false if it is not.
empty(value) or value.empty()
empty(0) → true

empty() Formula

How empty() works

The empty() function evaluates the provided value and returns a boolean value: true if the value is empty, and false if it is not.
The syntax for the empty() function is straightforward:
empty(value)
Notion Formula
복사
value.empty()
Notion Formula
복사
Breaking it down
value: The value or property that you want to check for emptiness. Returns true (represented as ) if the value is empty. 0, “”, false, and [] are considered empty.

Example of empty()

Search
example
description
formula
results
Using the empty() function on “”.
empty("")
true
Using the empty() function on [], an empty list.
empty([])
true
Using the empty() function on a property.
empty(prop("example tags")) - In this example, the “example tag” property is a Multi-Select property with two tags assigned to it: example1 and example2.
false

Conclusion

The empty() function in Notion is a fundamental tool that enables users to check for the presence of values effectively. By understanding its structure and application, you can create more robust formulas that respond to the state of your data or item.
Thank you for reading this tutorial! If you found it helpful, be sure to check out shop for my beautiful templates, which I am confident enough to say are a game-changer Subscribe to my newsletter and feel free to follow me on my social media for updates!
Happy Notion(ing)!
Search