String length is equal
What this tool does
This tool checks if the number of characters in your text matches a specific length you provide. It is a simple validation step to ensure data entries have the expected size.
Common uses
- Verifying that a postal code or ID number has the correct number of digits.
- Ensuring a username or code meets a minimum or exact character requirement.
- Checking if a short message fits within a specific limit.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
text | Yes | test | Enter the exact text you want to check. For example, 'test'. |
length | Yes | 4 | Enter the number of characters you expect the text to have. For example, '4' for the word 'test'. |
Output data
| Field | Description |
|---|---|
result | Returns true if the text length matches the number you provided, or false otherwise. For example, if you enter 'test' and check for length 4, the result is true. |