XenoGuard Documentation

Split

Actions » Programming » String Operation » Truncate » Split 

The action Split breaks a string into several substrings and stores the substrings in Strings 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 Split action.

Parameters:

The action 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 action 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:

  • Value - a substring
Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter]

Information 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 typeThe result after splitting the strings into substring is then output via Message Box.

See other string truncate operations:

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