> For the complete documentation index, see [llms.txt](https://docs.atfinity.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.atfinity.io/rule-language/operators/special-operators/ensure.md).

# ensure

### Description

`ensure` guarantees that at least the specified instance(s) exist(s). If they do, there are no further actions taken. If they don't, the system will create what is missing.

It can only be used [when writing](broken://pages/-ML6r4mAXDaMTNMbDnL2) creation type [process rules](broken://pages/-MLCQQUjwgNG2Vd_Onez).

### Example

```
ensure 2 Person, AccountHolder
```

If the case already has two persons that are accountholders, this expression will change nothing.

However, if there is only one person who is accountholder, the system will create a second person with the [role](/guides/glossary/role.md) AccountHolder.

{% hint style="info" %}
Older versions of [RuLa](/rule-language/what-is-the-rule-language.md) included the operator `create`. It is possible you encounter it in rules that were written before the current version of RuLa. However, going forward, use `ensure` instead of `create`.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
