Page 24 of 38 FA69356–2 English
Jun 2013
38
How To Create Date and Time
Formats
Linx 5900 & 7900
3.3.5 Example 5
Length = 1
if (mod < 06:00) use “A”
if (mod < 14:00) use “B”
if (mod < 22:00) use “C”
use “A”
This example generates a shift code. The printer changes each of the times (06:00, 14:00, and
22:00) to a numeric value (number of minutes).
If any comparison result is ‘true’, the printer processes the Use command for that
comparison and ignores the next lines in the program.
The result for all three comparisons is ‘false’ for any time from 22:00 to 23:59, and the final
command is processed.
3.3.6 Example 6
length = 3
if ((dow = 1)|(dow = 2))
{
if (hod < 12) use “AAA”
if (hod < 18) use “BBB”
use “CCC”
}
else use “DDD”
This example generates the following:
• “AAA” on Monday and Tuesday from 00:00 to 11:59.
• “BBB” on Monday and Tuesday from 12:00 to 17:59.
• “CCC” on Monday and Tuesday from 18:00 to 23:59.
• “DDD” at other times.
This example uses the comparator symbol “|” (the ‘OR’ comparator).