XenoGuard Documentation

Trim Whitespace

Actions » Programming » String Operation » Truncate » Trim Whitespace 

The action Trim Whitespace deletes all whitespace from the start and end of a specified string and stores the shortened string in Result of the result list.

[-] Hide
  1. Open the Programming node in the Workspace Explorer.
  2. Open the String Operation node.
  3. In the Truncate node, select the Trim Whitespace action.

Parameters:

The action has the following input parameters:


name Description
Source String The string to be truncated.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]

Results:

The action returns the following results:


name
description
Result Contains the truncated string.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter]

Information If there are no whitespaces to be removed from the string, the current string is stored in Result of the result list.

Example 1 (Removes whitespaces from a variable):

This example takes out the whitespaces of the local Company Name variable with Text as a data typeThe result of removing the whitespaces in the beginning and end is then output via Write Text.


See other string truncate operations:

Substring
Remove
Trim Whitespace at Start
Trim Whitespace at End
Split
Between