---
title: "isValidIdentifier(_:namespaced:)"
framework: usdkit
role: symbol
role_heading: Type Method
path: "usdkit/usdtoken/isvalididentifier(_:namespaced:)"
---

# isValidIdentifier(_:namespaced:)

Returns a Boolean value that indicates whether the given string is a valid USD identifier.

## Declaration

```swift
static func isValidIdentifier(_ name: String, namespaced: Bool = false) -> Bool
```

## Parameters

- `name`: The string to evaluate.
- `namespaced`: Pass true to allow the : namespace separator.

## Return Value

Return Value true if name is a valid identifier; otherwise, false.
