mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08:00
7 lines
432 B
Markdown
7 lines
432 B
Markdown
This operator is used to update node values. It can be used in either the:
|
|
|
|
### plain form: `=`
|
|
Which will assign the LHS node values to the RHS node values. The RHS expression is run against the matching nodes in the pipeline.
|
|
|
|
### relative form: `|=`
|
|
This will do a similar thing to the plain form, however, the RHS expression is run against _the LHS nodes_. This is useful for updating values based on old values, e.g. increment. |