IBAN.IsValid
------------

Checks whether an IBAN is valid.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [IBAN](component_IBAN.md) | [11.1](newinversion111.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "IBAN.IsValid"; IBAN ) 

**MBS**( **"IBAN.IsValid";** /\* Checks whether an IBAN is valid. \*/  
**$IBAN**) /\* The IBAN to check.e.g. "DE29100100100987654321" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| IBAN | The IBAN to check. | "DE29100100100987654321" |

### Result

Returns 1, 0 or error.

### Description

Checks whether an IBAN is valid.  
Ignores invalid characters in input, e.g. strip out dots, spaces or dashes.  
  
The IBAN must:  
- have a valid country code.
- have the minimum length for the country.
- match the structure of the country's IBAN format (See [IBAN.RegEx](IBANRegEx.md))
- have a valid checksum.

Returns 1 if valid or 0 if not.  
  
You may want to do a trim() on the number yourself.  
### Examples

Check whether IBAN is valid:

 MBS ("IBAN.isValid"; "DE29100100100987654321")  
### See also

- [IBAN.RegEx](IBANRegEx.md)
- [JSON.IsValid](JSONIsValid.md)

### Blog Entries

- [MBS Plugin Advent calendar: 9 - IBAN](https://www.mbsplugins.de/archive/2023-12-09/MBS_Plugin_Advent_calendar_9_-/monkeybreadsoftware_blog_filemaker)
- [Tips and tricks with MBS](https://www.mbsplugins.de/archive/2023-08-10/Tips_and_tricks_with_MBS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.1](https://www.mbsplugins.de/archive/2021-03-16/MBS_FileMaker_Plugin_111/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 26th February 2021 , last changed 31st August 2023

  
[IBAN.Format](IBANFormat.md) - [IBAN.RegEx](IBANRegEx.md)

[HTML Version](IBANIsValid.shtml)