---
title: Condition :if
weight: 2
---

`:if` directive allows to conditionally display a tag and its descendants.

Example: `<p :if="state.count < 5">Less than 5</p>` will be displayed if the condition is met.
