# IsValidName

| **Name**    | ***IsValidName***                                                       |
| ----------- | ----------------------------------------------------------------------- |
| Syntax      | IsValidName (String name)                                               |
| Purpose     | To check whether a specified string is a valid object or element name.  |
| Description | Returns true if the specified string is a valid object or element name. |
| Return Type | Boolean                                                                 |
| Parameters  | name \[System.String] – Name to check IsValid                           |

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

**Example**

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

Where,

*name* = ABCD\_123

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

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has returned “True”, as the specified string is a valid object or element name.

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

Conversely, if we swap the input value with “ABC 123”, Astera Data Stack will return “False”, as the specified string value is not a valid object or element name.

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