Values & Text Reference

This page describes built-in Touch Portal Values & Text actions, events and states. For other automation options, see the Touch Portal Capability Model.

Values & Text Actions

Set Value Capitalization

The Action 'Set Value Capitalization' as visible in Touch Portal.

Action settings

Value
The Value to capitalize
Option
The option for capitalisation
This action allows you to capitalize the text Value.
Action
Icon showing the Touch Portal category this item belongs to.

4.0

Available since
Touch Portal Logo used to accompany the version number this item was available from.
Green Windows Logo indicating this Action is supported on Windows.
Green macOS Logo indicating this Action is supported on macOS.
Green Linux Logo indicating this Action is supported on Linux.

Replace (regex) In Value

The Action 'Replace (regex) In Value' as visible in Touch Portal.

Action settings

Token (regex)
The regex token to search for in the Value
Replacement
The replacement to replace the regex token with in the Value
Value
The Value object to store the results in
This action allows you to replace a given part of the Value Object with another value.
Note: If you want to add newlines to the Value, you can use {tpnewline} which are replaced by the systems newline character combination when used in this action.
Action
Icon showing the Touch Portal category this item belongs to.

2.3

Available since
Touch Portal Logo used to accompany the version number this item was available from.
Green Windows Logo indicating this Action is supported on Windows.
Green macOS Logo indicating this Action is supported on macOS.
Green Linux Logo indicating this Action is supported on Linux.

Get Subtext

The Action 'Get Subtext' as visible in Touch Portal.

Action settings

Value
The value to store the results in
Text
The text to get the part of
Range start
index of the start of the sub text
Range end
index of the end of the sub text
This action allows you to get part of a text Value
Action
Icon showing the Touch Portal category this item belongs to.

4.0

Available since
Touch Portal Logo used to accompany the version number this item was available from.
Green Windows Logo indicating this Action is supported on Windows.
Green macOS Logo indicating this Action is supported on macOS.
Green Linux Logo indicating this Action is supported on Linux.

Get Length Of Value

The Action 'Get Length Of Value' as visible in Touch Portal.

Action settings

Value
The Value to store the length of the given text in.
Text
The text to get the length of.
This action allows you to get the length of a given text and store it into a Value.
Action
Icon showing the Touch Portal category this item belongs to.

4.0

Available since
Touch Portal Logo used to accompany the version number this item was available from.
Green Windows Logo indicating this Action is supported on Windows.
Green macOS Logo indicating this Action is supported on macOS.
Green Linux Logo indicating this Action is supported on Linux.

Trim Value

The Action 'Trim Value' as visible in Touch Portal.

Action settings

Value
The Value to trim
This action allows you to trim the text Value
Action
Icon showing the Touch Portal category this item belongs to.

4.0

Available since
Touch Portal Logo used to accompany the version number this item was available from.
Green Windows Logo indicating this Action is supported on Windows.
Green macOS Logo indicating this Action is supported on macOS.
Green Linux Logo indicating this Action is supported on Linux.

Split Value And Get N-th

The Action 'Split Value And Get N-th' as visible in Touch Portal.

Action settings

Value
The Value to store the results in
n-th
The index of the item to get from the split collection
Text
The text to split
Delimiter
the character or text to split the text with.
This action allows you to split a text with a delimiter and get the nth item from the split text.
Note: The n-th index is zero based. This means the first item in the collection is 0.
Note: The delimiter works using regex, therefor you need to escape special characeters like <([{\^-=$!|]})?*+.> with escape character \ otherwise they are handled as the function they represent in regex
Action
Icon showing the Touch Portal category this item belongs to.

4.0

Available since
Touch Portal Logo used to accompany the version number this item was available from.
Green Windows Logo indicating this Action is supported on Windows.
Green macOS Logo indicating this Action is supported on macOS.
Green Linux Logo indicating this Action is supported on Linux.

Get Index Of

The Action 'Get Index Of' as visible in Touch Portal.

Action settings

Value
the Value to store the results in
Token
the character or text to get the index of
Text
the Text to search for the token
This action allows you to get the index of a given character or text from a text
Note: This will save the index if found or it will save -1 in the Value if the token is not found.
Note: The index is zero based.
Action
Icon showing the Touch Portal category this item belongs to.

4.0

Available since
Touch Portal Logo used to accompany the version number this item was available from.
Green Windows Logo indicating this Action is supported on Windows.
Green macOS Logo indicating this Action is supported on macOS.
Green Linux Logo indicating this Action is supported on Linux.

Get Occurrence Count

The Action 'Get Occurrence Count' as visible in Touch Portal.

Action settings

Value
the Value to store the results in
Token
the character or text to get the occurence count of
Text
the Text to search for the token
This action allows you to count occurences of text in a text and store it into a Value
Action
Icon showing the Touch Portal category this item belongs to.

4.0

Available since
Touch Portal Logo used to accompany the version number this item was available from.
Green Windows Logo indicating this Action is supported on Windows.
Green macOS Logo indicating this Action is supported on macOS.
Green Linux Logo indicating this Action is supported on Linux.

Get Last Index Of

The Action 'Get Last Index Of' as visible in Touch Portal.

Action settings

Value
the Value to store the results in
Token
the character or text to get the last index of
Text
the Text to search for the token
This action allows you to get the last index of a given character or text from a text
Note: This will save the last index if found or it will save -1 in the Value if the token is not found.
Note: The index is zero based.
Action
Icon showing the Touch Portal category this item belongs to.

4.5

Available since
Touch Portal Logo used to accompany the version number this item was available from.
Green Windows Logo indicating this Action is supported on Windows.
Green macOS Logo indicating this Action is supported on macOS.
Green Linux Logo indicating this Action is supported on Linux.