# ST-MRD-007 - Nested If Clauses

> **Rule ID**: `ST-MRD-007`

**Rule ID**: `ST-MRD-007`

**Scope**: Workflow

## Description

The rule checks whether more than 3 nested If clauses are used in the file or project.

## Recommendation

Avoid nested If clauses to improve readability. Refactor to use non-nested If's, flowcharts or switch. Read more about [Workflow Design](https://docs.uipath.com/studio/standalone/latest/user-guide/workflow-design#workflow-design).

![docs image](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-167805-2df2745a.webp)
