Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt
Code Block
number monthNumber = month(currentDate());
string monthName = formatDate(currentDate(), "MMMM");

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

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