trim
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Description
Syntax
- Syntax:
- trim stringValue
- Parameters:
- stringValue: String - string to be trimmed. spaces, tabs and line returns are removed from both ends of stringValue.
- Return Value:
- String - trimmed string
Alternative Syntax
- Syntax:
- string trim [chars, where]
- Parameters:
- string: String - string to be trimmed
- chars: String - list of characters to be trimmed
- where: Number - can be:
- 0 - trim at the beginning (left) and the end (right)
- 1 - trim at the beginning (left)
- 2 - trim at the end (right)
- Return Value:
- String - trimmed string
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- select
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