mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-15 23:58:04 +00:00
9 lines
271 B
Markdown
9 lines
271 B
Markdown
# Add
|
|
|
|
Add behaves differently according to the type of the LHS:
|
|
* arrays: concatenate
|
|
* number scalars: arithmetic addition
|
|
* string scalars: concatenate
|
|
|
|
Use `+=` as append assign for things like increment. Note that `.a += .x` is equivalent to running `.a = .a + .x`.
|