XenoGuard 4.0 Documentation
Split
ActionStep Reference » Programming » String Operation » Truncate » Split
The ActionStep Split breaks a string into several substrings and stores the substrings in Strings of the result list.
[-] Hide
- Open the Programming node in the Workspace Explorer.
- Open the String Operation node.
- In the Truncate node, select the Split ActionStep.
Parameters:
The ActionStep has the following input parameters:
name |
Description
|
---|---|
Source String |
The string to be split into substrings.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] |
Split String
|
A character or string that delimits the string.
Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum] |
Results:
The ActionStep returns the following results:
name
|
description
|
---|---|
String Count |
The number of split substrings.
Allowed Context Scope [Fixed] Allowed Context Types [Variable, Parameter] |
Strings
|
The substrings after splitting a given string.
The parameter of the "String" sub-branch:
Allowed Context Types [Variable, Parameter] |
The specified Split String as delimiter is removed from the resulting substring(s). |
Example 1 (Display the word count of a string):
This example counts the string from the local Description variable with Text as a data type. The result after splitting the strings into substring is then output via Message Box.
See other Truncate operations:
Substring
Remove
Trim Whitespace
Trim Whitespace at Start
Trim Whitespace at End
Between