Zoomed Image

AMSX Scripting Language - Command : trim

Summary

Trim whitespace or a specific character from a string

Description

Removes leading and trailing occurrences of the specified character from the source string. If no character is supplied, spaces are trimmed. Both the space character and the specified character are always trimmed.

Parameters

ParameterDescription
cmdSource string to trim
Argument 0Character to trim (leave blank to trim spaces only)

Syntax


Trim "Source string to trim", "Character to trim (leave blank to trim spaces only)"

Return to the AMSX Command Reference