FAQ

How to count number of list members

October 23, 2020

You can count the number of members in a list. This is useful for determining how many times the end-user repeats over a loop, or for determining the number of data sets that's retrieved from a Workbase with a Query Block.

How it works

  1. Add an Expression Block to create a new variable
  2. In this expression editor for this new variable, add your list variable then the operator 'size'

For example, here is how you it works for a list variable craeated by a loop:

The variable created by your Expression Block (in the example above, the variable is number_of_children) is equal to the number of list members.

Hire an Afterpattern expert

Go from idea to launch in weeks.

View services