-

From Bohemia Interactive Community
Revision as of 18:42, 6 February 2019 by Lou Montana (talk | contribs) (Page creation)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Subtracts an element from another. Template:Feature arma3
Groups:
Uncategorised

Syntax

Syntax:
numberA - numberB
Parameters:
numberA: Number
numberB: Number
Return Value:
Number

Alternative Syntax

Syntax:
arrayA - arrayB
Parameters:
arrayA: Array
arrayB: Array
Return Value:
Array

Examples

Example 1:
_result = 10 - 7; // result is 3
Example 2:
_result = [1, 2, 2, player, "String"] - [2, player, player, "String"]; // _result is [1]
Example 3:
_result = [0, [0], [[0]]] - [0]; // [[0],[[0]]]
Example 4:
_result = [0, [0], [[0]]] - [[0]]; // [0,[[0]]] - Since Arma 3 _result = [0, [0], [[0]]] - [[[0]]]; // [0,[0]] - Since Arma 3

Additional Information

See also:
ArrayOperators

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section