valuea plus valueb: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
back to [[Scripting_Reference#.23|COMREF]]
back to [[Scripting_Reference#.23|COMREF]]


<h2 style="color:#000066">''' ''valuea''+''valueb'' '''</h2>
<h2 style="color:#000066">''' ''valuea'' + ''valueb'' '''</h2>


'''Operand types:'''
'''Operand types:'''
Line 20: Line 20:
'''Example:'''
'''Example:'''


String concatentation - "I" + " am" + " blind" ..........Result is "I am blind"
String concatentation - "I" '''+''' " am" '''+''' " blind" ..........Result is "I am blind"


Array concatenation - [0, 1, 2] + [1, 2, 3] ..........Result is [0, 1, 2, 1, 2, 3]
Array concatenation - [0, 1, 2] '''+''' [1, 2, 3] ..........Result is [0, 1, 2, 1, 2, 3]

Revision as of 18:35, 15 April 2006

back to COMREF

valuea + valueb

Operand types:

valuea: String or Array

valueb: String or Array

Type of returned value:

String or Array

Description:

valuea and valueb are concatenated


Example:

String concatentation - "I" + " am" + " blind" ..........Result is "I am blind"

Array concatenation - [0, 1, 2] + [1, 2, 3] ..........Result is [0, 1, 2, 1, 2, 3]