Expand description
Variables block: writes the run’s named values. The block’s data.entries is
a list of {name, value, reducer?}. Each string value is {{}}-resolved
against the current scope (a value that is one {{...}} token keeps its type:
a number stays a number, a list a list) and written under the variable’s reducer
(replace, the default, append, merge or add; see drone/state.rs),
so a loop can collect into a list or add up a number. A value that reads
something tainted is written tainted, and no later write clears it.
Output: { "vars": { name: value, ... } } (what this block wrote) so
downstream blocks can read the state via {{var.name}} or what this block
wrote via {{<this_block_id>.vars.name}}.
Functions§
- reducer_
of 🔒 - run
- The block fails as a whole: when an entry fails, the entries before it and every declaration are put back as they were.
- write_
entries 🔒