Skip to main content
Language reference / when

Meaning and placement

task

LOCAL business condition · false skips the task · evaluated after the gate and BEFORE any fan-out, over inputs · const · with only: the for_each locals item / index are not bound yet (NIKA-VAR-001), and a tasks.* reference is refused (NIKA-VAR-021 · hoist it into with:) · spec/03-dag.md §when. In the same object: after · agent · exec · extract · for_each · group · infer · invoke · lift · on_error · retry · returns · timeout · with Schema source (use the pointer above)

In a source template

Excerpt from templates/corpus-qa.nika, source lines 93–102. This is a fragment, not a runnable workflow.
illustration

Templates containing this field

These are literal key occurrences in the source files, not an execution or conformance claim. How to instantiate a template.

Contract and implementation

This page projects the named specification revision. Check released engine status and the validation workflow before running a file. An optional field is not evidence that every engine supports every value. Canonical identity: language:word:when. Spec revision: 5c40ba456c53. How documentation stays connected.