Arma 3 Scripting

trim

  • Arma 3 v2.02

Command · Markdown · JSON · original wiki page

Description

Trims a string.

Syntax

Syntax 1

trim stringValue

Parameters:

Returns: String - trimmed string

Syntax 2

string trim [chars, where]

Parameters:

Returns: String - trimmed string

Examples

Example 1

trim "        hello, how are you?  "; // returns "hello, how are you?"

Example 2

"hewosentence!123" trim ["3e1o2hw", 0]; // returns "sentence!"

See also

select