# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FaeYM1BgrXGCRjwEykrsq%2F0.png?alt=media)

**Example**

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

Where,

*name* = ABCD\_123

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FQvRbW2LLqNNgbcOJKnnv%2F1.png?alt=media)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FxHp6fGZbz69VnMNUWOXa%2F2.png?alt=media)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FmtvMkkCMWpgyLowPR8Tx%2F3.png?alt=media)
