Formulas are little utilities embedded in your notes. They work a lot like formulas in a spreadsheet without the need for a whole table.
Formulas can do standard math stuff like add and subtract numbers, they can get the value of a beanbetween two dates, and they can do lots of surprising things when combined with other Tap functions.
There are a few different categories of functions:
Each on their own are fairly abstract, but through combination their usefulness grows.
Here are a few examples:
This adds 1 and 1 and renders “2” in our note
We can give the formula a name:
This renders “Add one and one: 2” in our note
We can harness the power of the unknown using random.
We can flip a coin:
That last one took a big leap, let’s break it down.
This will create a list with two items: “heads” and “tails”. It will show up in the note as “heads, tails”.
By introducing chaos from the universe we will randomly select “heads” or “tails”
The note will show up as “The coin flipped: heads” OR “The coin flipped: tails” depending on certain mystic forces beyond anyone’s control.
Why we would want a note that flips a coin, I don’t know. Here’s another formula of questionable utility.