a plus b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Redirect to +)
 
(19 intermediate revisions by 9 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|#]]
#REDIRECT [[+]]
[[Category:Scripting Commands OFP 1.96|#]]
[[Category:Scripting Commands OFP 1.46|#]]
[[Category:Scripting Commands ArmA|#]]
 
{{Command|= Comments
____________________________________________________________________________________________
 
| ofp |= Game name
 
|1.00|= Game version
____________________________________________________________________________________________
 
|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.|= Description
____________________________________________________________________________________________
 
|''' ''a'' + ''b'' ''' |= Syntax
 
|p1 = a: [[Number]], [[String]] or [[Array]]
 
|p2 = b: [[Number]], [[String]] or [[Array]]
 
| [[Number]], [[String]] or [[Array]] |= Return value
____________________________________________________________________________________________
|x1 = <code>[[Number]]<br>_result <nowiki>=</nowiki> 1 '''+''' 2</code>
 
_result is 3
 
|x2 = <code>[[String]]<br>_result <nowiki>=</nowiki> "He" '''+''' "llo"</code>
 
_result is "Hello"
 
 
|x3 = <code>[[Array]]<br>_result <nowiki>=</nowiki> [1] '''+''' [2]</code>
 
_result is [1,2]
 
 
| [[Array]] |= See also
 
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
 
 
[[Category:Command_Group:_Math|#]]
[[Category:Command_Group:_Variables|#]]

Latest revision as of 14:58, 6 February 2019

Redirect to: