Slips & printing

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:

KindHoldsReads as, by default
TextWordsAs written
NumberA numberAs written — some fields as a duration or percent
DateA day, or a day and timeA numeric date, with the time when it has one
ListItems — words, or records with fieldsRecords one per line, by name; words joined with commas
Yes / NoTrue or falseYes or No
ImageA picture another block made—
From the AppOne of your things — a project, tag, task…Its name
ValueAnything — the answer of a request, a result of codeAs 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

FormatMenuDoes
upperUPPERCASE
lowerlowercase
capitalizeCapitalized
plainWithout formattingDrops bold, links and the rest
firstLineFirst line
truncate:30ShortenedCuts to that many characters, with …
splitAs a list of linesMakes a list, one item per line
rawAs storedKeeps the markup — in HTML, inserted unescaped

Numbers

FormatMenuExample
round:1Rounded3.14 → 3.1 (0–6 decimals)
groupedWith separators12 500
signedWith its sign+8, −3
percentPercent0.42 → 42 %
durationAs hours and minutes95 → 1h 35m
ordinalOrdinal1st

Dates

FormatMenuExample
shortShort27/11/26
mediumDay and month27 Nov
longLongFriday 27 November 2026
weekdayWeekdayFriday
relativeRelativein 3 days, yesterday; within a day 20 min ago, just now
timeTime14:30 — empty for a day with no time
daysUntilDays untilA number
rawAs stored2026-11-27

Dates and times follow the format you chose in Settings → General → Date & Time, and the app's language.

Lists

FormatMenuExample
join:", "Joinedmilk, eggs, bread
linesOne per line
checklistChecklist[x] milk / [ ] eggs
progressDone of all2/5
countCount5
first, lastFirst, LastThe item — with its fields
jsonAs 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).

KindComparisons
AnythingIs · Is Not · Is Empty · Is Not Empty
TextContains · Does Not Contain · Starts With · Ends With · Matches Pattern
NumbersGreater Than · At Least · Less Than · At Most
DatesIs Today · Has Passed · Is Still Ahead · Is Before · Is After · Is Within Days
ListsHas More Than · Has Fewer Than
Yes / NoIs 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
Functionsmin, 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:

FieldHow a value goes in
HTMLEscaped, so text can't become markup — unless read with | raw
A web addressEncoded 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 JSONAs JSON
JavaScriptAs a real value, in inputs — never pasted into the code
A page script (HTML, Website)As a literal
ShellAs an environment variable — always one word, never run as a command