Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyaml
vars:
  data: {"deeper": null}
pipeline:
  - body.set:
     if: "${@data.has(#root, 'vars.data')}"
     value: ${vars.data}

As you can see in this example, #root is used here in order to put the whole root context into the utility in order to check for attribute existence by path.

...