CalDay
General System Function
The CalDay function returns a number representing the weekday within a Simulation Options' Run Length week. Since CalDay resets with the advent of a new week, every weekday returns the same value (e.g., Wednesday is always 3).
Syntax
CalDay()
Examples
If CalDay() = 3 Then
{
Inc Var1
Dec Var2
}
The following example displays the weekday when an Entity enters the Truck Location.
Display CalDay()
Remarks
CalDay works only when you select Run Length Type: Calendar Date in Simulation Options.