---
title: *if Directive (Fudgel.js)
---

# `*if` Directive

Conditionally display an element using the [directive](directives.html) `*if`. This will automatically be updated if using a property on your controller. If the [expression](expressions.html) evaluates to false, the DOM element is removed. When it is true, the DOM element is put back.

<code-sample sample="samples/directive-if.js"></code-sample>
