a plus b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(duplicated)
Line 21: Line 21:
| a '''+''' b |= Syntax
| a '''+''' b |= Syntax


|p1 = a: [[Number]], [[String]] or [[Array]]
|p1 = a: [[Number]]


|p2 = b: [[Number]], [[String]] or [[Array]]
|p2 = b: [[Number]]


| [[Number]], [[String]] or [[Array]] |= Return value
| [[Number]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1 = <code>[[Number]]<br>_result <nowiki>=</nowiki> 1 '''+''' 2</code>  
|x1 = <code>[[Number]]<br>_result <nowiki>=</nowiki> 1 '''+''' 2</code>  
Line 31: Line 31:
_result is 3
_result is 3


|x2 = <code>[[String]]<br>_result <nowiki>=</nowiki> "He" '''+''' "llo"</code>


_result is "Hello"


 
| [[Operators]] |= See also
|x3 = <code>[[Array]]<br>_result <nowiki>=</nowiki> [1] '''+''' [2]</code>
 
_result is [1,2]
 
 
| [[Array]], [[Operators]] |= See also


}}
}}

Revision as of 04:46, 31 January 2009


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
b: Number
Return Value:
Number

Examples

Example 1:
Number
_result = 1 + 2
_result is 3

Additional Information

See also:
Operators

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