# If

Runs commands based on conditions

#### Conditions

See [Conditions](https://docs.browserflow.app/guides/conditions) page

### Use cases

If you're looping through a collection of elements and want to click on a button that only exists for some elements, you can use `If` with the "Element is visible" type to only run the `Click` command if the button exists.
