Length list lower or equal
What this tool does
This tool checks whether a list of items has a length less than or equal to a specified number. It helps you quickly verify that a collection does not exceed a certain size limit. This is useful for validating data entries before processing them.
When to use it
- Ensuring a form submission contains no more than five attached files.
- Checking that a list of tags assigned to a post does not exceed ten items.
- Verifying that a group of users selected for a survey fits within a quota.
- Confirming that a list of keywords does not go over a set maximum count.
What to expect
A simple yes or no answer indicating whether the count of items in your list is within the allowed limit.
Limitations
- The tool only checks the total count of items and does not examine the content of each item.
- Empty spaces or formatting issues in your list might not be handled as you expect.
- It does not validate the quality or uniqueness of the items, only their quantity.
When it fails
- If you do not provide a list of items.
- If the specified limit is not a valid whole number.
- If the list format is completely unreadable.
Good to know
- The comparison includes the case where the number of items equals the limit.
- You should ensure your list is properly separated by commas to avoid counting errors.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
list | Yes | 1,2,3 | Enter the items as a comma-separated text string (e.g., '1,2,3'). This field is required. |
length | Yes | 3 | Enter the maximum number of items allowed as a plain number (e.g., '3'). This field is required. |
Output data
| Field | Description |
|---|---|
result | Returns the actual comparison value (the boolean true/false result of the check), not a text message. |