plus a: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 2: Line 2:


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


'''Operand types:'''
'''Operand types:'''
Line 18: Line 19:
'''Example:'''
'''Example:'''


Unary number - +4 ..........Result is 4
Unary number - '''+'''4 ..........Result is 4


Unary array - +[0, 1, 2] ..........Result is [0, 1, 2]
Unary array - '''+'''[0, 1, 2] ..........Result is [0, 1, 2]

Revision as of 19:37, 15 April 2006

back to COMREF

+valuea


Operand types:

valuea: Number or Array

Type of returned value:

Number or Array

Description:

Unary plus - returns a copy of valuea.


Example:

Unary number - +4 ..........Result is 4

Unary array - +[0, 1, 2] ..........Result is [0, 1, 2]