a - b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
For numbers: '''a''' minus '''b'''.
For numbers: '''a''' minus '''b'''.


For arrays: Array '''a''' and array '''b''' added together.<br>
For arrays: Contents of array '''b''' removed from array '''a'''.<br>
'''See also.''' [[Array]]
'''See also.''' [[Array]]



Revision as of 15:22, 19 April 2006

back to COMREF

a - b


Operand types:

a: Number or Array

b: Number or Array

Type of returned value:

Number or Array

Description:

For numbers: a minus b.

For arrays: Contents of array b removed from array a.
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]