I have a request from a supervisor to have multiple colors in a field based upon the the order status and time it was ordered. My biggest problem is how to enter the time ranges. I keep getting an error saying I need a "then" somewhere around the time field.
if {stpuw_histology_worklist.Status} = "ordered"
and {stpuw_histology_worklist.order_created_date} time (11,01,00) to (19,30,00)then crRed
if {stpuw_histology_worklist.Status} = "ordered"
and {stpuw_histology_worklist.order_created_date} time (19,31,00) to (08,00,00)then crBlue
if {stpuw_histology_worklist.Status} = "ordered"
and {stpuw_histology_worklist.order_created_date} time (08,01,00) to (11,00,00)then crGreen
else defaultattribute
if {stpuw_histology_worklist.Status} = "ordered"
and {stpuw_histology_worklist.order_created_date} time (11,01,00) to (19,30,00)then crRed
if {stpuw_histology_worklist.Status} = "ordered"
and {stpuw_histology_worklist.order_created_date} time (19,31,00) to (08,00,00)then crBlue
if {stpuw_histology_worklist.Status} = "ordered"
and {stpuw_histology_worklist.order_created_date} time (08,01,00) to (11,00,00)then crGreen
else defaultattribute