Skip to content

Array List Size — Reference

Reference · Advanced · Server Connect

Return the current number of items in an existing list.

Return the current number of items in an existing list.

  • A Server Connect action. Create the referenced Array List earlier in the same request before using it.

Return the current number of items in an existing list.

Setting Meaning
NameThe step name under which this lookup result is available to later server expressions.
Array ListChoose a Create Array List step available above this action. The stored reference is its name; it is not a database connection or a client-side component.
OutputIncludes this named lookup result in the action response. The result can be used by later server steps without Output. Check the saved state: several lookup actions initialize Output on although their declared default is false.

Create a list with [“Notebook”,“Pencil”]. Add Array List Size named count, select the list and enable Output. The result is count = 2. Clear the list and read Size again; it is 0.

Size is a count, not the last valid index. For a list of size 2, the valid indices are 0 and 1.

Use a Get Array List Value step when you need to expose the final list after mutations. Use a database or server session when the data must persist beyond this request.

You can configure this operation and verify the example’s resulting value or list.