Get length Version 6 (Java)
Action group: Text
Description
The action gets the total number of symbols in a text.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Text | The text in which the character count will be performed | Robin.String | Yes | |
Results | ||||
Result | Numeric variable containing the total number of characters in the text | Robin.Numeric |
Special conditions of use
When running the action, spaces are counted as a character.
Example of use
Task
There is a variable "Text" with value "Hello, friend! How are you?". Get the number of symbols in the text, show the result in the dialogue window.
Solution
Use the "Get length", "Show message" actions.
Implementation
- Create a numeric variable where the "Get length" action result will be written into.
- Move the "Get length" action to the workspace and set its parameters.
- Move the "Show message" action to the workspace and set its parameters.
- Click "Start" in the top panel to start the robot.
Result
The output is the dialogue window with the number of symbols in the text.
Обзор
Инструменты контента