a plus b

From Bohemia Interactive Community
Revision as of 05:24, 12 August 2006 by Hoz (talk | contribs) (moved to template)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
For numbers: a added to b. For strings: All the characters in a and the characters in b are added together. For arrays: Contents of a and the contents of b are added together.
Groups:
Uncategorised

Syntax

Syntax:
a + b
Parameters:
a: Number, String or Array
b: Number, String or Array
Return Value:
Number, String or Array

Examples

Example 1:
Number
_result = 1 + 2 _result is 3
Example 2:
String
_result = "He" + "llo" _result is "Hello"
Example 3:
Array
_result = [1] + [2] _result is [1,2]

Additional Information

See also:
Array

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


a + b


Operand types:

a: Number, String or Array

b: Number, String or Array

Type of returned value:

Number, String or Array

Description:

For numbers: a added to b.

For strings: All the characters in a and the characters in b are added together.

For arrays: Contents of a and the contents of b are added together.

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]