Skip to end of banner
Go to start of banner

If-Else Example 2

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

« Previous Version 2 Next »

number monthNumber = month(currentDate());
string monthName = formatDate(currentDate(), "MMMM");

if(monthNumber > 12) {
    runnerLog("Example 2: Time no longer exists :(");
}

Use this method when looping through arrays and you don't need to know the index position.

  • No labels