Conditions Cookbook
Recipes for if expressions in scripts and one‑liners.
- Compare numbers or strings:
priority >= 2,status = completed - Regex match:
name matches ^Deep - Logical operators:
and,or,xor,nor,not,! - Parentheses:
(energy = high and focus = good) or emotion = calm - Exists checks:
exists file:User/notes/devlog.yml,exists dir:User/notes,exists env:HOME - Item lookups:
task:Write Readme:priority >= medium
