An operator used to divide two numbers and return only the remainder.
result = number1 Mod number2
The modulus, or remainder, operator divides number1 by number2 (rounding floating-point numbers to integers) and returns only the remainder as result. For example, in the following expression, ret (which is result) equals 1.
ret = 10 Mod 3
Message("Result = ", ret)
;This example grabs the Time/Day of the Week. a=TimeYmdHms( ) b=TimeJulianDay(a) c=(b+5) mod 7 day=ItemExtract(c+1, "Sun Mon Tue Wed Thu Fri Sat", " ") line=StrCat("Julian Date-> ", b,@CRLF,"Day of week-> ",day) Message(TimeDate( ), line)