XenoGuard 4.0 Documentation
Trim Whitespace At Start
ActionStep Reference » Programming » String Operation » Truncate » Trim Whitespace At Start
The ActionStep Trim Whitespace At Start removes all leading whitespaces of a specified string and stores the shortened string in Result of the result list.
[-] Hide
- Open the Programming node in the Workspace Explorer.
- Open the String Operation node.
- In the Truncate node, select the Trim Whitespace At Start ActionStep.
Parameters:
The ActionStep 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 ActionStep returns the following results:
name
|
description
|
---|---|
Result |
Contains the truncated string.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter] |
If there are no whitespaces to be removed from the string, the current string is stored in Result of the result list. |
Example 1 (Remove leading whitespaces from a variable):
This example deletes all whitespaces at the start of the local Leave Type variable with Text as a data type. The result after removing the leading whitespaces is then output via Write Text.
See other Truncate operations:
Substring
Remove
Trim Whitespace
Trim Whitespace at End
Split
Between