---
title: "If-Else"
canonical: "https://support.appfire.com/space/PSCONF/15305804/If-Else"
format: markdown
---
> Macro (aura-html)

If/else statements are one of the most fundamental tools in writing scripts. These statements check to see if a statement is true, if it is true it will perform a set of actions. If it is not true it will skip those actions and continue to the next statement until a statement is true or it runs out of statements to check.

## Example 1 - Always true

> Macro (excerpt-include)



## Example 2 - Always false

> Macro (excerpt-include)



## Example 3 - Sometimes true

> Macro (excerpt-include)



## Example 4 - If, else-if

> Macro (excerpt-include)



## Example 3 - If, else-if, else

> Macro (excerpt-include)