IsValidCLABE
The IsValidCLABE function determines whether the data field that is passed as a parameter is in a valid Clave Bancaria Estandarizada (CLABE) format.
This function validates that the data in the first parameter adheres to the CLABE format. It returns true if the account number is valid and false if it is not.
A valid CLABE formatted account number has the following characteristics.
- It is 18 characters in length.
- It contains only digits.
- It passes the CLABE checksum calculation.
Return type
The function return type is: BOOLEAN
Function parameters
| Parameter order | Input variable type | Parameter data type | Required parameter | Description |
|---|---|---|---|---|
| 1 | Data field | STRING | Yes | The account number to be validated. |