From Bohemia Interactive Community
|
|
(33 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]] or [[String]] or [[Array]]
| |
| | |
| '''b:''' [[Number]] or [[String]] or [[Array]]
| |
| | |
| '''Type of returned value:'''
| |
| | |
| Either [[Number]] or [[String]] or [[Array]]
| |
| | |
| '''Description:'''
| |
| For numbers, '''a''' added to '''b'''. For strings, all the characters in '''a''' followed by all the charaters in '''b'''. For arrays, all the elements of '''a''' followed by all the elements of '''b'''<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