key -> value

This block is part of the mutations group and was last modified in core v10.4.28.

key -> value v10.4.28

In pins 6
  • key required
    value
  • Value required
    value
  • Number required
    number
  • Object required
    object
  • Condition required
    condition
  • Array required
    array
Out pins 1
  • mutations
    mutations

Emits a one-element mutations array holding a single set.field mutation: key from the key pin, value from the LAST connected typed pin holding a JS-truthy value -- false, 0, "" and null are SKIPPED, and when nothing is truthy the value falls back to {}. The key is omitted from the mutation when the key pin is unconnected.

A typical wiring for key -> value: the mutations out pin feeds get at index.

Studio canvas example for the key -> value block: typical wiring for key -> value.

Version history

Introduced in v10.4.28.


Back to mutations Return to the main group to view all sub-groups Back to mutations Return to the group to view all blocks within this group