# IS\_UNIQUE\_NAME

### Description

`IS_UNIQUE_NAME` checks whether a given name does not already exist as a valid instance of a specified type on the platform. It returns `true` if the name is unique (i.e. no active instance with that name exists), and `false` otherwise.

This is useful for validation rules that enforce uniqueness of instance names.

### Example

```
p is Person
IS_UNIQUE_NAME('Company', p.company_name)
```

This returns `true` if no active `Company` instance with the name stored in `p.company_name` exists on the platform.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.atfinity.io/rule-language/operators/special-operators/is_unique_name.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
