XenoGuard 4.0 Documentation
Between
ActionStep Reference » Programming » String Operation » Truncate » Between
The ActionStep Between retrieves a specified string between the start and end strings 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 Between 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] |
Start String
|
The starting point for the string.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] |
End String |
The end point for the string.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] |
Ignore Upper and Lower Case |
Determines whether the string case is ignored or not.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] |
Trim Result |
The length of character(s) to be removed.
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 or shortened string.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter] |
If Ignore Upper and Lower Case is set to "True", an error occurs when the value of either Start String or End String is not found within the specified string. |
Example 1 (Displays a substring between the text of a variable):
This example gets a string from a local Message variable with Text as a data type. The result of truncating the specified string is then output via Write Text.
See other Truncate operations:
Substring
Remove
Trim Whitespace
Trim Whitespace at Start
Trim Whitespace at End
Split