a plus b: Difference between revisions
Jump to navigation
Jump to search
m (moved to template) |
mNo edit summary |
||
Line 27: | Line 27: | ||
| [[Number]], [[String]] or [[Array]] |= Return value | | [[Number]], [[String]] or [[Array]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1 = <code>[[Number]] | |x1 = <code>[[Number]]<br>_result <nowiki>=</nowiki> 1 '''+''' 2</code> | ||
_result is 3 | _result is 3 | ||
|x2 = <code>[[String]] | |x2 = <code>[[String]]<br>_result <nowiki>=</nowiki> "He" '''+''' "llo"</code> | ||
_result is "Hello" | _result is "Hello" | ||
|x3 = <code>[[Array]] | |x3 = <code>[[Array]]<br>_result <nowiki>=</nowiki> [1] '''+''' [2]</code> | ||
_result is [1,2] | _result is [1,2] | ||
Line 55: | Line 55: | ||
[[Category:Command_Group:_Math|#]] | [[Category:Command_Group:_Math|#]] | ||
[[Category:Command_Group:_Variables|#]] | [[Category:Command_Group:_Variables|#]] |
Revision as of 04:27, 12 August 2006
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 is 3
_result = 1 + 2- Example 2:
String
_result is "Hello"
_result = "He" + "llo"- Example 3:
Array
_result is [1,2]
_result = [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