a plus b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Redirect to +)
 
(32 intermediate revisions by 10 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#.23|COMREF]]
#REDIRECT [[+]]
 
<h2 style="color:#000066">''' ''a'' + ''b'' '''</h2>
 
 
'''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.<br>
 
''See also.'' [[Array]]
 
 
'''Examples:'''
 
[[Number]]<br>_result = 1 '''+''' 2 ........ _result is 3
 
 
[[String]]<br>_result = "He" '''+''' "llo" ........ _result is "Hello"
 
 
[[Array]]<br>_result = [1] '''+''' [2] ........ _result is [1,2]

Latest revision as of 15:58, 6 February 2019

Redirect to: