a plus b

From Bohemia Interactive Community
Revision as of 06:48, 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 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]