# ST-MRD-007 - Nested If Clauses

> ST-MRD-007 (Maintainability and Readability category) checks for more than three nested If clauses in a Studio workflow, recommending refactoring for readability.

**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/2024.10/user-guide/workflow-design#workflow-design).

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