# Condition command group

### <mark style="background-color:orange;">**Conditions**</mark>

The Conditions command is used to set conditions for executing commands. Key settings to consider include:

* ***Value:*** Input the value for comparison.
* ***Equals:*** This operator compares two values and returns True if they are equal and False if not.

<figure><img src="https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2F50KWQMeuhBTVPEBOeZG0%2Fwhile-loop-value.png?alt=media&#x26;token=7375f4b5-9bd8-4b2f-b428-e487d16c3249" alt=""><figcaption></figcaption></figure>

* ***Equals (case insensitive):*** Similar to the Equals operator, but it does not differentiate between uppercase and lowercase letters, typically used for strings. For example, "Hello" will be considered equal to "hello".
* ***Not equals:*** The opposite of the Equals operator, returns True if two values are not equal and False if they are.
* ***Less than:*** Compares whether one value is less than another. Returns True if the condition is met, False otherwise.
* ***Less than or equal:*** Compares whether one value is less than or equal to another. Returns True if the condition is met, False otherwise.
* ***Greater than or equal:*** Compares whether one value is greater than or equal to another. Returns True if the condition is met, False otherwise.
* ***Greater than:*** Compares whether one value is greater than another. Returns True if the condition is met, False otherwise.
* ***Contains:*** Checks if a string or set contains a specific element. Returns True if it does, False otherwise.
* ***Contains (case insensitive):*** Similar to the Contains operator, but it does not differentiate between uppercase and lowercase letters in strings.
* ***Not contains:*** Checks if a string or set does not contain a specific element. Returns True if it does not, False otherwise.
* ***Not contains (case insensitive):*** Similar to the Not contains operator, but it does not differentiate between uppercase and lowercase letters in strings.
* ***Starts with:*** Checks if a string starts with a specific sequence of characters. Returns True if it does, False otherwise.
* ***Ends with:*** Checks if a string ends with a specific sequence of characters. Returns True if it does, False otherwise.
* ***Match with RegEx:*** Checks if a string matches a regular expression pattern. Returns True if it matches, False otherwise.

<figure><img src="https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FL0jPUsU0EPu7NJcT0ssI%2Fwhile-loop-equals.png?alt=media&#x26;token=d23b9421-72b8-42c6-abd3-c8e6193edea3" alt=""><figcaption></figcaption></figure>

* ***Variable exists:*** Checks if a variable has a valid input value.
* ***Variable not exists:*** Checks if a variable does not have a valid input value.
* ***Element exists:*** Checks if an element has a valid input value.
* ***Element not exists:*** Checks if an element does not have a valid input value.
  * You need to select the element retrieval type (CSS or Xpath) and paste the selector.
  * Waiting time: Time to wait for selector verification.

<figure><img src="https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FImyTUVxjNGeLFp6UUqvZ%2Fwhile-loop-element-not-exist.png?alt=media&#x26;token=b4d0cd0f-ec8f-4b25-97d4-e945e667f004" alt=""><figcaption></figcaption></figure>

* ***Add:*** Used when multiple conditions need to be satisfied simultaneously.
* ***Or:*** Used when one of the conditions needs to be satisfied.

<figure><img src="https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2FNihso4286HW3FSVZbynS%2Fwhile-loop-or.png?alt=media&#x26;token=1559e1ee-8e37-4939-bdbf-1b4eb81a59f5" alt=""><figcaption></figcaption></figure>

### <mark style="background-color:orange;">**Condition break**</mark>&#x20;

Similar to the Stop loop command, the Condition break command is used to indicate the end of conditions.

Use the Break setting when using the Condition command within a loop (Loop). The loop will end only when the conditions are satisfied. If not using a loop, you don't need to select the "Use Break" setting.

<figure><img src="https://4124472707-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3GxBkpnRvhRE3DopYR6v%2Fuploads%2F9wzN5V2U1TeqD6PrkhHn%2Fconditions-break.png?alt=media&#x26;token=15611f75-92da-4845-9f84-fa8a6d5f2da2" alt=""><figcaption></figcaption></figure>
