a plus b: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
[[Category:Scripting Commands ArmA|#]] | [[Category:Scripting Commands ArmA|#]] | ||
<h2 style="color:#000066">''' ''a'' + ''b'' '''</h2> | <h2 style="color:#000066">''' ''a'' + ''b'' '''</h2> |
Revision as of 11:19, 23 April 2006
a + b
Operand types:
Type of returned value:
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]