There is a very simple command that should decrement a value. It is used in a custom client which has buttons to increment or decrement an amount.
I would think the sum
operation does the trick, but that results in an error message:
no valid 'integer target' found for 'type' option 'sign inversion'. Unexpected 'number set type'
Also wrapping it in a a min
operation does not solve the problem. Maybe a bit naive on my part .
'Aantal': number positive 'willekeurig'
'-': command { } => update (
'Aantal' = sum (
.'Aantal' ,
- 1
)
)