# and then

### Description

When using `and then`, the second [expression](/rule-language/expressions.md) is only evaluated after the first has evaluated to 'true'. That means that the [field](broken://pages/-MLC7Nuj2H4vw8p5A0EZ) in the second expression will not be asked before the first one is answered.

This is a good operator to use when a condition only needs to be evaluated under certain circumstances.

### Example

```
e is Entity
e.entity_type = trust 
and then
e.number_of_trust_founders > 0
```

This composed condition could be attached to a [document](/guides/glossary/document.md) needed for trust founders. You only want to ask about the number of trust founders, if the document is actually about a trust.

That means you first determine the type of entity. This happens on line 2 of the example, where you want the system to check if the entity is a trust or not.

If it is, and only then, you want to ask how many founders the trust has. You wouldn't ask that, if the entity isn't a trust.

That's why `and then` is the operator to use here: only ask about the number of trust founders, after the first question on the entity type has been answered and evaluates to 'true'.


---

# 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/boolean-operators/and-then.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.
