
## Filter {#filter}

Builds new tree of tasks which satisfy the condition.

**Returns:** Root of a new tree.

```cpp
Filter(const System::SharedPtr< Task > & root, const System::SharedPtr< ICondition < System::SharedPtr< Task >>> & cond)
```

| Parameter | Description |
| --- | --- |
| root | Root of the tree. |
| cond | Applied condition. |

