# larger

Learn how to use the Boolean "larger" (>) operator in Notion formulas.
The larger (`>`) operator returns true if its left operand is greater than its right operand. It accepts numeric, date, and Boolean operands.
1
number > number
2
Boolean > Boolean
3
date > date
4
5
larger(number, number)
6
larger(Boolean, Boolean)
7
larger(date, date)
You can also use the function version, `larger()`.

## Example Formulas

1
2 > 1 // Output: true
2
3
42 > 50 // Output: false
4
5
// Boolean values equate to 1 (true) and 0 (false).
6
true > false // Output: true
7
8
true > true // Output: false
9
10
// For dates, "less than" equates to "before".
11
now() > dateSubtract(now(), 1, "days") // Output: true
Good to know: When comparing dates, "larger" = "later".
Good to know: The larger (`>`) operator cannot be chained in a Notion formula. A formula like `3 > 2 > 1` won't work. Use the and operator to get around this - e.g. 3` `>` 2 and 2 > 1`.

## Example Database

This example database records the power levels of two fighters at different stages. The Stronger formula outputs a sentence stating who the stronger fighter is at that time.

### "Stronger" Property Formula

1
((prop("Goku") > prop("Vegeta")) ? "Goku is stronger" : "Vegeta is stronger") + " during " + prop("Saga") + "."
This formula uses the conditional operators `?` and `:` to form an if-then statement. The output is then combined with strings and the output of the Saga property via the add (`+`) operator (which can concatenate strings).