Trim

The Trim action in Avo Assure, found under @Generic Element, helps remove any extra spaces before or after the input text and stores the result in a dynamic variable.

Syntax

Input Value: <input string>

Argument
Description

<input string> (Required)

It is a set of text or characters used in the input value field

Output Value

Argument
Description

<Dynamic Variable> (Required)

This variable stores the trimmed string

<Dynamic Variable> (Optional)

This variable stores the status as True or False

Example Trimming Extra Spaces from a String, using the Trim Action The Trim action takes the value from the Input Value column (" Alice ") and removes the extra spaces from the beginning and the end. The resulting string (Alice) is stored in the {Trimmed String} variable. The status of the operation is stored in the {status} variable, with the following possible values:

  • True – if the spaces removed or

  • False – if the no spaces found to trim

String
Input Value (syntax)
Result

Text Strings

" Automation "

Automation

Numeric Strings

" 123456 "

123456

Alphanumeric strings

" ID2025 ''

ID2025

Last updated

Was this helpful?