PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Length

Returns the number of characters in a text.

Length counts the characters in a text, spaces included. Use it to check that a code has the right length, or to calculate a position for Take From Middle.

Add the action

In the Process Designer toolbox, open String and pick Length (or type Length in the search box). The List folder has an action with the same name that counts list items; make sure you pick the one in String.

The Length action properties: Input String and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Input StringInputTextYesThe text to measure.
ResultOutputIntegerYesThe number of characters.

Example

Input StringResult
Hello world11
ศ˜tefan6
(empty text)0
ok๐Ÿ‘4

Good to know

  • Spaces, tabs and line breaks count as characters.
  • An empty text, or a text with no value, gives 0.
  • Most emoji count as 2 characters (the last example). Letters with diacritics, such as ศ˜, count as 1.

On this page