a - b

From Bohemia Interactive Community
Revision as of 05:52, 17 April 2006 by Fragorl (talk | contribs)
Jump to navigation Jump to search

back to COMREF

a - b


Operand types:

a, b: Both Number or Array

Type of returned value:

Either Number or Array

Description:

For numbers, a minus b. For arrays, everything that is in a that is not in b
See also. Array


Examples:

Number
_sum = 10 - 7 ............ _sum is 3

Array
_result = [1,2,2,player,"String"] - [2,player,player,"String"] ............ _result is [1]