# ST-MRD-017 - Incomplete If

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

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

**Scope**: Activity

## Description

The rule checks whether there are any **If** activities that are empty or contain activities only in the Else branch.

## Recommendation

Remove or disable empty If activities. When only the Else branch is populated, consider switching the condition and moving the content to the Then branch.

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