# Conditional coloring

<figure><img src="https://3696064508-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffen81laUQFBf286HYARr%2Fuploads%2FmffLzwMTquCh0I6iZTGd%2Fimage.png?alt=media&#x26;token=3e4e3350-923b-483f-8c66-41c8f3804a85" alt="" width="563"><figcaption></figcaption></figure>

* Press `@` for variables.
* Use `AND/OR` for multiple conditions in the same if statement.
* e.g., `@variable1 >= @variable2 AND @variable3 <= @variable4`.
* Click on the "add condition" button to add more conditions.
* Use color pickers to add colors.

#### Creating a conditional color scheme

1. **Open the Conditional Coloring Configurator**.
2. **Add Conditions**: Click on the “add condition” button and enter your conditions using `@` for variables. Combine multiple conditions with `AND/OR`.
3. **Pick Colors**: Click "Show Color Picker" to choose colors for nodes that meet each condition.
4. **Set Fallback Color**: Pick a fallback color for nodes that do not meet any condition.

**Example:**

* Condition: `sales >= 1000 AND profit >= 5`
* Assigned Color: Green
* Condition: `sales < 1000 OR profit < 5`
* Assigned Color: Red
* Fallback Color: Gray

A legend will appear based on the conditions you created for different measures.&#x20;
