Formula Components

Formulas and Databases

Reference

Formula Examples

sign

Learn how to use the sign function in Notion formulas.

The

`sign()`

function returns the sign of its argument. It indicates whether its argument is positive, negative, or zero.1

sign(number)

1

sign(-5) // -1

2

β

3

sign(5) // 1

4

β

5

sign(0) // 0

6

β

7

sign(+"-1") // -1

The example database below lists bank account balances. The

`sign()`

function is used to determine the output of the Status property.sign

College Info Geek on Notion

1

// Compressed

2

sign(prop("Balance")) == -1 ? "π΄ Negative Balance!" : sign(prop("Balance")) == 0 ? "π‘ $0 Balance" : "π’ Balance OK"

3

β

4

// Expanded

5

sign(

6

prop("Balance")

7

) == -1 ?

8

"π΄ Negative Balance!" :

9

sign(

10

prop("Balance")

11

) == 0 ?

12

"π‘ $0 Balance" :

13

"π’ Balance OK"

This simple formula uses a nested if-statement (written in the ternary operator syntax with

`?`

and `:`

) to return one of three status messages.The output is determined by the

`sign()`

function's output.β 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 21d ago

Copy link

On this page

Example Formulas

Example Database

View and Duplicate Database

"Balance" Property Formula