# IsValidBSN

{% hint style="info" %}
The **`IsValidBSN()`** function checks whether the input parameter has a valid BSN format (**Dutch** social security number).

This function is NOT SQL compatible. For more information about SQL compatibility, see our [documentation](https://docs.wem.io/platform/wemreference/sql-compatibility).
{% endhint %}

{% hint style="warning" %}
Note: BSN is used in the **Netherlands** as identification number.
{% endhint %}

{% hint style="success" %}
Returns <mark style="color:green;">`true`</mark> if <mark style="color:blue;">`text`</mark> is indeed a valid BSN.

Returns <mark style="color:red;">`false`</mark> if <mark style="color:blue;">`text`</mark> is not a valid BSN.
{% endhint %}

### Syntax

<details>

<summary><code>IsValidBSN(</code><mark style="color:blue;"><code>text</code></mark><code>)</code></summary>

`IsValidBSN("123456782")`\
:thumbsup:*Result: True*

`IsValidBSN("123456789")`\
:thumbsdown:*Result: False*

</details>

### Parameters

<table><thead><tr><th width="150">Name</th><th width="150">Type</th><th width="150" align="center">Required</th><th width="284.6178790534619">Description</th><th data-hidden>Required?</th></tr></thead><tbody><tr><td><mark style="color:blue;">text</mark></td><td>text</td><td align="center"><span data-gb-custom-inline data-tag="emoji" data-code="2611">☑️</span></td><td>BSN number to be validated. </td><td>yes</td></tr></tbody></table>
