Skip to main content
Roberty Studio
RPAUtils

Count

Count

Counts the size of the given value: the number of characters of a text or the number of items of a list. Useful to find out how many records a list returned by another action holds, or to validate the length of a text.


Options​

Value​

Value to be counted. It can be a text, a number or the result of another action, such as a list.

Returns​

Javascript code​

js
actions["action-id"].value // result of counting the given value (Number)

Field selection​

  • value — result of counting the given value (Number)

Rules and Conditions​

  • The Value field is required.
  • For texts, the result is the number of characters; for lists, the number of items.
  • For numbers, the result is the number of characters of the written number (for example, 1234 returns 4).
  • For objects that are not lists, Yes/No values or empty values, the result is 0.
  • The action does not accumulate values between runs: each run returns only the count of the value given at that moment.