plus a: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (moved to template)
Line 3: Line 3:
[[Category:Scripting Commands OFP 1.46|#]]
[[Category:Scripting Commands OFP 1.46|#]]
[[Category:Scripting Commands ArmA|#]]
[[Category:Scripting Commands ArmA|#]]
{{Command|= Comments
____________________________________________________________________________________________


| ofp |= Game name


<h2 style="color:#000066">''' + ''valuea'' '''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Unary plus - returns a copy of valuea. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| ''' + ''valuea'' '''|= Syntax
|p1 = valuea: [[Number]] or [[Array]]
| [[Number]] or [[Array]] |= Return value
____________________________________________________________________________________________
|x1 = <code>Unary number - '''+'''4 </code>
Result is 4


'''valuea:''' [[Number]] or [[Array]]
|x2 = <code>Unary array - '''+'''[0, 1, 2]</code>
Result is [0, 1, 2]


'''Type of returned value:'''
|  |= See also


[[Number]] or [[Array]]
}}


'''Description:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Unary plus - returns a copy of valuea.
<!-- Note Section END -->
</dl>


 
<h3 style="display:none">Bottom Section</h3>
'''Example:'''
 
Unary number - '''+'''4 ..........Result is 4
 
Unary array - '''+'''[0, 1, 2] ..........Result is [0, 1, 2]


[[Category:Command_Group:_Variables|#]]
[[Category:Command_Group:_Variables|#]]

Revision as of 04:18, 12 August 2006


Hover & click on the images for description

Description

Description:
Unary plus - returns a copy of valuea.
Groups:
Uncategorised

Syntax

Syntax:
+ valuea
Parameters:
valuea: Number or Array
Return Value:
Number or Array

Examples

Example 1:
Unary number - +4 Result is 4
Example 2:
Unary array - +[0, 1, 2] Result is [0, 1, 2]

Additional Information

See also:
See also needed

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