Skip to end of banner
Go to start of banner

If-Else Example 4

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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....");
}
  • No labels