a plus b

From Bohemia Interactive Community

Jump to: navigation, search


Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.00

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
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.

Syntax

Syntax:
a + b
Parameters:
a: Number, String or Array
b: Number, String or Array
Return Value:
Number, String or Array

Examples

Example 1:
Number
_result = 1 + 2

_result is 3

Example 2:
String
_result = "He" + "llo"

_result is "Hello"

Example 3:
Array
_result = [1] + [2]

_result is [1,2]

Additional Information

Multiplayer:
Behaviour unknown.
See also:
Array, Operators

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Bottom Section

Personal tools
Buy ArmA now!