param1 - param2
Operand types
Type of returned value
Description
Unary minus: returns result of param1 minus param2.
Following Types are possible:
Number - -a: Unary minus, zero minus a
Return value type: Number
Number - a - b: Subtract b from a
Return value type: Number
Array - arrayA - arrayB: All elements in arrayB are removed from arrayA
Return value type: Array
Used In
OFP/ArmA
Example
- -3 ..........Result is 3
counter - 1
[0, 1, 2, 4, 0, 1, 2, 3, 4, 5] - [1, 2, 3] ..........Result is [0, 4, 0, 4, 5]