# 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: 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/ensure.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.
