# 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`)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.browserflow.app/guides/conditions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
