---
name: "composeText"
type: command
status: ok
groups: ["Strings", "Structured Text"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/composeText
revid: 336896
updated: 2023-01-04T16:43:56Z
---

# composeText

*Command · Strings, Structured Text · Arma 3 v0.50 · introduced in Operation Flashpoint: Elite v1.00*

## Description

Creates a [Structured Text](../topics/Structured_Text.md) by joining the given [structured](../topics/Structured_Text.md) or [plain](../topics/String.md) text arguments.

## Syntax

```sqf
composeText arguments
```

**Parameters:**

- `arguments`: [Array](../topics/Array.md) of [String](../topics/String.md) and/or [Structured Text](../topics/Structured_Text.md) - use [Structured Text](../topics/Structured_Text.md) where necessary (see [#Example 2](../commands/composeText.md#example-2))

**Returns:** [Structured Text](../topics/Structured_Text.md)

## Examples

### Example 1

```sqf
hint composeText ["Image: ", image "\a3\Data_f\Flags\flag_Altis_co.paa"];
```

### Example 2

```sqf
hint composeText ["line1", "<br/>", "line2"];        // result displayed in one line
hint composeText ["line1", lineBreak, "line2"];    // result displayed in two lines
```

## See also

[Structured Text](../topics/Structured_Text.md) · [formatText](../commands/formatText.md) · [image](../commands/image.md) · [lineBreak](../commands/lineBreak.md) · [parseText](../commands/parseText.md) · [text](../commands/text.md) · [setAttributes](../commands/setAttributes.md)

<sub>Source: [BI Community Wiki — composeText](https://community.bistudio.com/wiki/composeText) (revision 336896).</sub>
