Variables, formats & conditions
How a slip passes values between blocks — kinds of value, every format like | raw or | relative, sections, conditions and expressions.
Blocks on a slip talk to each other through variables. This page is the reference for how they're written, what kinds of value they hold, and how to shape them on the paper.
Variables
{{Block.output}} names one block's output — {{Task.name}}, {{Weather.high}}.
Writing the name is the connection: the block now waits for the one it names.
Type @ or {{ in any field to choose one from a menu, grouped by block.
- Dots reach inside a record or a list:
{{Request.json.items.0}},{{Item.name}}. - Built in:
{{today}}(a date) and{{now}}(a date and time), the same moment in every block of a run. - Renaming a block rewrites every variable that names it.
- A variable nothing gives stays on the paper as written. The editor marks it — No block provides this — and offers New Constant to make one.
- A block can't read from a block that reads from it: the editor says it would create a loop.
Block names can't be empty and can't contain {, } or |.
Kinds of value
Every output has a kind, shown in the editor:
| Kind | Holds | Reads as, by default |
|---|---|---|
| Text | Words | As written |
| Number | A number | As written — some fields as a duration or percent |
| Date | A day, or a day and time | A numeric date, with the time when it has one |
| List | Items — words, or records with fields | Records one per line, by name; words joined with commas |
| Yes / No | True or false | Yes or No |
| Image | A picture another block made | — |
| From the App | One of your things — a project, tag, task… | Its name |
| Value | Anything — the answer of a request, a result of code | As it comes |
Values convert where it's obvious: text with one item per line can be read as a
list, 1,5 as a number. A value counts as no when it is empty, false, no,
0, or an empty list.
The editor only offers what fits: the format menu shows the formats for a variable's kind, and a condition shows the comparisons that make sense for its left side.
Formats
Click a variable in a field to choose how it reads. In text, a format is written after a bar — and formats chain, left to right:
{{Task.deadline | relative}}
{{Task.name | truncate:20 | upper}}
{{Task.tags | join:" · " | default:"no tags"}}
Quote an argument that has spaces. As it is in the menu removes every format.
Text
| Format | Menu | Does |
|---|---|---|
upper | UPPERCASE | |
lower | lowercase | |
capitalize | Capitalized | |
plain | Without formatting | Drops bold, links and the rest |
firstLine | First line | |
truncate:30 | Shortened | Cuts to that many characters, with … |
split | As a list of lines | Makes a list, one item per line |
raw | As stored | Keeps the markup — in HTML, inserted unescaped |
Numbers
| Format | Menu | Example |
|---|---|---|
round:1 | Rounded | 3.14 → 3.1 (0–6 decimals) |
grouped | With separators | 12 500 |
signed | With its sign | +8, −3 |
percent | Percent | 0.42 → 42 % |
duration | As hours and minutes | 95 → 1h 35m |
ordinal | Ordinal | 1st |
Dates
| Format | Menu | Example |
|---|---|---|
short | Short | 27/11/26 |
medium | Day and month | 27 Nov |
long | Long | Friday 27 November 2026 |
weekday | Weekday | Friday |
relative | Relative | in 3 days, yesterday; within a day 20 min ago, just now |
time | Time | 14:30 — empty for a day with no time |
daysUntil | Days until | A number |
raw | As stored | 2026-11-27 |
Dates and times follow the format you chose in Settings → General → Date & Time, and the app's language.
Lists
| Format | Menu | Example |
|---|---|---|
join:", " | Joined | milk, eggs, bread |
lines | One per line | |
checklist | Checklist | [x] milk / [ ] eggs |
progress | Done of all | 2/5 |
count | Count | 5 |
first, last | First, Last | The item — with its fields |
json | As JSON |
Yes / No
check (Checkbox) prints [x] or [ ].
When empty
default:"…" — When empty in the menu — prints something instead of nothing:
{{Task.deadline | relative | default:"no deadline"}}. It works on every kind.
Sections
In any text field — Text, Row, HTML, a prompt — two sections shape what appears:
{{#each Tasks.tasks}}
{{Item.index}}. {{Item.name}}
{{else}}
Nothing today.
{{/each}}
{{#each List}}…{{/each}}repeats for every item. Inside,{{Item}}is the item,{{Item.field}}one of its fields and{{Item.index}}its number, counting from 1.{{else}}shows when the list is empty.{{#if Value}}…{{else}}…{{/if}}shows its content only when the value is set, not empty and not no.
For a whole block — one line per subtask, one image per item — use Once for each… on the block instead; see the blocks.
Conditions
Print only when…, a List's Only items where… and a Conditional's branches are built from conditions. Add a Condition, then choose whether All of them are true or Any one is true (click to switch).
| Kind | Comparisons |
|---|---|
| Anything | Is · Is Not · Is Empty · Is Not Empty |
| Text | Contains · Does Not Contain · Starts With · Ends With · Matches Pattern |
| Numbers | Greater Than · At Least · Less Than · At Most |
| Dates | Is Today · Has Passed · Is Still Ahead · Is Before · Is After · Is Within Days |
| Lists | Has More Than · Has Fewer Than |
| Yes / No | Is Yes · Is No |
A single variable on the left keeps its kind, so Focus Time · At Least · 60 compares minutes, not the words 1h 0m.
Expressions
The Expression block works a number out from a formula:
round({{Task.focusTime}} / 60, 1)
max({{Tasks.count}}, 1)
| Arithmetic | + - * / %, and parentheses |
| Comparisons | < > <= >= == != — each gives 1 or 0 |
| Functions | min, max, sum, avg (any number of values), abs, floor, ceil, round(x, places), sqrt, pow(x, y) |
Decimals use a point (1.5), and a comma always separates a function's values. A
variable stands for its number — a duration for its minutes. An empty value, or
dividing by zero, gives an empty result rather than an error, so pair it with
When empty if the paper needs something there.
Values inside code and addresses
Where a value lands decides how it is put in — you don't write anything for it:
| Field | How a value goes in |
|---|---|
| HTML | Escaped, so text can't become markup — unless read with | raw |
| A web address | Encoded for a URL (a variable at the very start is left as it is, so it can be the whole address) |
| A request body in JSON | As JSON |
| JavaScript | As a real value, in inputs — never pasted into the code |
| A page script (HTML, Website) | As a literal |
| Shell | As an environment variable — always one word, never run as a command |