Check if data-quality $1.00 / 1,000 calls

Length list lower

What this tool does

This tool checks whether the number of items in a list is smaller than a specific number you set. It helps you quickly verify if a list is too short for your needs, such as ensuring a list has at least a certain amount of entries. It is useful for simple validation before processing data.

When to use it

  • Verifying that a list of required options has enough items selected.
  • Checking if a list of tags is too short before saving a record.
  • Ensuring a collection of IDs meets a minimum size requirement.

What to expect

A clear answer indicating whether the list size is lower than the number you provided.

Limitations

  • It only checks the total count of items, not their content or order.
  • It does not validate if the items themselves are correct or valid.
  • An empty list is treated as having zero items, which is always lower than any positive number.

Good to know

  • If the list is empty, the result will indicate that the size is lower than any positive number you enter.

Input data

Parameter Required Example Description
list Yes 1,2,3 Enter a comma-separated list of items, for example '1,2,3'.
length Yes 4 Enter the number to compare against, for example '4'.

Output data

Field Description
result Returns the comparison result, which is 'true' if the list has fewer items than the number, and 'false' otherwise.