a plus b

From Bohemia Interactive Community
Revision as of 15:09, 19 April 2006 by Planck (talk | contribs)
Jump to navigation Jump to search

back to COMREF

a + b


Operand types:

a: Number or String or Array

b: Number or String or Array

Type of returned value:

Either Number or String or Array

Description: For numbers, a added to b. For strings, all the characters in a followed by all the charaters in b. For arrays, all the elements of a followed by all the elements of b
See also. Array


Examples:

Number
_result = 1 + 2 ........ _result is 3


String
_result = "He" + "llo" ........ _result is "Hello"


Array
_result = [1] + [2] ........ _result is [1,2]