a plus b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (cond plus moved to a plus b)
No edit summary
Line 1: Line 1:
 
[[Category:Scripting Commands|#]]
[[Category:Scripting Commands OFP 1.97|#]]
[[Category:Scripting Commands OFP 1.46|#]]
[[Category:Scripting Commands ArmA|#]]


back to [[Scripting_Reference#.23|COMREF]]
back to [[Scripting_Reference#.23|COMREF]]

Revision as of 16:25, 21 April 2006


back to COMREF

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]