> For the complete documentation index, see [llms.txt](https://docs.browserflow.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.browserflow.app/guides/conditions.md).

# Conditions

Conditions can be used:

* To control the flow using commands like [If](/reference/browserflow-commands/control-flow/if.md) and [While](/reference/browserflow-commands/control-flow/while.md)&#x20;
* To search and filter rows in spreadsheets using commands like [Find Spreadsheet Row](/reference/browserflow-commands/spreadsheet/find-spreadsheet-row.md) and [Loop Spreadsheet Rows](/reference/browserflow-commands/spreadsheet/loop-spreadsheet-rows.md)
* To verify results and create end-to-end tests using [Assert](/reference/browserflow-commands/utilities/assert.md)

### Element

#### Element is visible

* Value: [Selector](/guides/selectors.md) for the element to check for visibility

#### Element is hidden

* Value: [Selector](/guides/selectors.md) for the element to check for visibility

### Basic

#### Is empty

#### Is not empty

### Text

Text comparisons are case-insensitive.

#### Text contains

#### Text does not contain

#### Text starts with

#### Text ends with

#### Text is exactly

### Numbers

#### Greater than

#### Greater than or equal to

#### Less than

#### Less than or equal to

#### Is equal to

#### Is not equal to

### Spreadsheets

#### Row number exists

#### Row number does not exist

### Code

#### Code

* Value: Javascript expression that evaluates to either `true` or `false` (e.g. `1 === 2`)
