---
title: "If-Else Example 4"
canonical: "https://support.appfire.com/space/PSCONF/15305790/If-Else%20Example%204"
format: markdown
---
> Macro (aura-html)

> Macro (excerpt)
> 
> ```
> number monthNumber = month(currentDate());
> string monthName = formatDate(currentDate(), "MMMM");
> 
> if(monthNumber == 1) {
>     runnerLog("Example 4: There are 31 days this month.");
> } else if(monthNumber == 2) {
>     runnerLog("Example 4: February is such a wierd month....");
> }
> ```