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.