XenoGuard Documentation

Between

Actions » Programming » String Operation » Truncate » Between 

The action Between retrieves a specified string between the start and end strings 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 Between 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]
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 action returns the following results:


name
description
Result Contains the truncated or shortened string.

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

Warning 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 string truncate operations:

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