# 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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/cNBNUCDyTCOK53vFidkT/0.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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/lTlfeettKar0q7GtRx5A/1.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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/jrsbnz2SAzEsHHgD5JGu/2.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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/UGlmkT4oYq4oTGjxrlsk/3.png)
