# Conditions

Conditions are logical rules that determine whether a task should be activated or skipped once its predecessors are completed.

They allow workflows to adapt dynamically to business data and context values.

Dependencies define the relationship between tasks:

* Which predecessors must be completed.
* Which conditions (IF rules) must be met.

### What are Conditions?

* A condition is an IF rule attached to a task.
* It checks values from the workflow context, system parameters, or related objects.
* If the condition is true, the task is activated.
* If the condition is false, the task is usually marked as *skipped*.

{% hint style="info" %}
If the condition is met, the workflow engine automatically activates the dependent task (default action).

For more advanced outcomes (update context, send notification, integrations), use a script task.
{% endhint %}

### Examples

1. Invoice approval scenario&#x20;

```
IF context.expenses_incomes.total_to_transfer > 20000  
→ Activate CFO Approval Task
```

2. Contract validation&#x20;

```
IF context.contract.type_of_contract = 'electronic'  
→ Activate Digital Signing Task
```
