🔵 🔵 🔵


Primary

၊၊||၊|။

choice() ⚬ᵈᵛ|Documentation|1st|20251125123210-00-⌔

Functions - Dataview#choicebool-left-right

choice(bool, left, right)

A primitive if statement - if the first argument is truthy, returns left; otherwise, returns right.

choice(true, "yes", "no") = "yes"
choice(false, "yes", "no") = "no"
choice(x > 4, y, z) = y if x > 4, else z

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •