-: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 47: | Line 47: | ||
|s3= arrayA [[-]] arrayB | |s3= arrayA [[-]] arrayB | ||
|p41= arrayA: [[Array]] | |p41= arrayA: [[Array]] of [[Anything]] | ||
|p42= arrayB: [[Array]] | |p42= arrayB: [[Array]] of [[Anything]] | ||
|r3= [[Array]] | |r3= [[Array]] of [[Anything]] | ||
|x1= <sqf>_result = 10 - 7; // result is 3</sqf> | |x1= <sqf>_result = 10 - 7; // result is 3</sqf> | ||
Latest revision as of 13:31, 1 January 2026
Description
- Description:
- Subtracts numbers or arrays from each another, negates a number. For arrays also see deleteAt and deleteRange.
- Groups:
- MathArrays
Syntax 1
Syntax 2
Syntax 3
- Syntax:
- arrayA - arrayB
- Parameters:
- arrayA: Array of Anything
- arrayB: Array of Anything
- Return Value:
- Array of Anything
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
- Example 5:
Additional Information
- See also:
- Array Operators deleteAt deleteRange
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Math
- Command Group: Arrays