# IsBlank

| **Name**    | ***IsBlank***                                                                                                                                                                                              |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Syntax      | IsBlank (String str)                                                                                                                                                                                       |
| Purpose     | To check whether the specified character within a string, in the specified index position, is a white space.                                                                                               |
| Description | Checks whether specified character is a white space.                                                                                                                                                       |
| Return Type | Boolean                                                                                                                                                                                                    |
| Parameters  | <p>str \[System.String] – String containing the character to test</p><p>index \[System.Int32] – Numerical position of the character in the string to test. If not specified, index is presumed to be 0</p> |

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(66\).png)

**Example**

In this example, we are passing the required parameters to the function transformation object using a *Variables* object.

Where,

*str* = 1a2 3c d

*index* = 3

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(67\).png)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has returned “True”, as the character in the specified numerical position is a white space.

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(67\).png)

Conversely, if we replace the *index* value with “2”, the output value will return the Boolean value, “False”, as shown below:

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/3%20\(22\).png)
