Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

jump_if

Conditional jump: first matching case, else optional fallback.

{
  "type": "jump_if",
  "cases": [
    { "expr": "score > 5", "to": "good" },
    { "expr": "score > 0", "to": "ok" }
  ],
  "else": "bad"
}
[jump_if score > 5 -> good else bad]

Usually you need

FieldTypeDefaultEffect
casesarray { expr, to }—First truthy wins
elsestring—Fallback node id

All fields

FieldTypeDefaultEffect
casesarray—{ "expr", "to" }
elsestring—Fallback
whenexpression—Skip whole command when falsy

Expressions · jump.