github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/gen/expr/subtract_by_op_doc.yaml (about) 1 - DocumentID: subtract-by 2 Title: >- 3 `-=` Subtract By Operator 4 CategoryID: parser 5 Summary: >- 6 Subtracts a variable by the right hand value (expression) 7 Description: |- 8 The Subtract By operator takes the value of the variable specified on the left 9 side of the operator and subtracts it by the value on the right hand side. Then 10 it assigns the result back to the variable specified on the left side. 11 12 It is ostensibly just shorthand for `$i = $i - value`. 13 14 This operator is only available in expressions. 15 Examples: |- 16 ``` 17 » $i = 3 18 » $i -= 2 19 » $i 20 1 21 ``` 22 Detail: |- 23 {{ include "gen/includes/expr-strict-types-assignment.inc.md" }} 24 Related: 25 - expr 26 - subtraction 27 - add-with 28 - multiply-by 29 - subtract-by 30 - int 31 - float 32 - num 33 - config 34 - cast