Testing Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Testing Commands >

Testing Commands

TST.Check IBAN

Previous Top Next


MiniRobotLanguage (MRL)

 

TST.Check IBAN

Test if a given string conforms to the format of an International Bank Account Number (IBAN).

 

 

Intention

 

The TST. Check IBAN command is designed to validate the format and structure of an International Bank Account Number (IBAN) provided in a variable.

This command is crucial for financial applications and services that require verification of bank account details across international borders.

 

International Validation: Adapts to the unique format and structure of IBANs from different countries, verifying both the country code and the checksum.

Flexibility in Result Handling: Offers the choice of handling the validation result directly via an optional variable or utilizing the TOS for immediate checks.

Precision in Financial Transactions: Ensures the accuracy and validity of bank account details in international transactions, reducing errors and fraud.

 

The TST. Check IBAN command simplifies the process of IBAN validation within scripts, supporting a wide range of financial operations and data verification tasks.

Unlike conditional commands, it directly provides a binary outcome of the validation process, making it straightforward to implement and understand.

 

The validation checks the IBAN's structure and format but does not confirm the existence of the account or its current status with a bank.

The command does not assume that the IBAN is correctly formatted (spaces and case) before checking.

 

TST.generate random iban|DE|$$N13

' Perform the IBAN check, result will be placed in $$RES

TST.Check IBAN|$$N13|$$RES

DBP.The string $$N13 IBAN Check results in a $$RES.

ENR.

 

 

 

Syntax

 

 

TST.Check IBAN|P1[|P2]

 

 

Parameter Explanation

 

P1 - The variable containing the IBAN to be validated.

P2 - (optional) A variable where the result of the validation (0 for invalid or 1 for valid) is stored. If omitted, the result is placed on the Top of Stack (TOS).

 

 

 

Example

 

'***********************************

' TST.-Sample

'***********************************
TST.generate random iban|DE|$$N13

' Perform the IBAN check, result will be placed on TOS

TST.Check IBAN|$$N13|$$RES

DBP.The string $$N13 IBAN Check results in a $$RES.

ENR.
 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: