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

Length list equal

What this tool does

This tool checks whether a list of items contains a specific number of entries. It helps you quickly verify if you have the exact count of values you expected, such as confirming that a form received precisely three answers.

When to use it

  • Verifying that a contact list has exactly five phone numbers.
  • Checking that a set of selected options contains four items.
  • Confirming that a comma-separated list has exactly three values.

What to expect

A simple yes or no answer indicating whether the number of items in your list matches the target number you provided.

Limitations

  • The check is exact; extra or missing items will result in a no.
  • Empty spaces in the list are treated as separate items.
  • The order of items does not matter, only the count.

When it fails

  • If you leave the list or target number blank.
  • If the target number is not a whole number.
  • If the list is missing entirely.

Good to know

  • Ensure your items are separated by commas for the list to be counted correctly.

Input data

Parameter Required Example Description
list Yes 1,2,3 Enter a comma-separated list of items (e.g., 1,2,3). This field is required.
length Yes 3 Enter the number of items you expect the list to contain (e.g., 3). This field is required.

Output data

Field Description
result Returns 'true' if the list has exactly the number of items specified, and 'false' otherwise (e.g., true).