# If

## If Activity

The If workflow activity can be nested in an unlimited number of ways to model business rules.&#x20;

To configure an If activity, drag the If workflow activity from the "Control Flow" module of the toolbox on to the designer.

&#x20;See the example below:

![](/files/-MFzBcodbRrMopUlf8Ek)


---

# 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.appstrategy.com/apprules-r-documentation/platform-products/apprules-integration-and-automation-engine/business-rules/control-flow-activities/if.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.
