If DateDiff ("s", {incident_log.sched_time},{incident_log.incident_date_time} ) < -30 then "Early" else
If DateDiff ("s", {incident_log.sched_time},{incident_log.incident_date_time} ) > 330 then "Late" else "OnTime"
I have this function called rsaStatus with the code listed above. However I want to force "rsaStatus" to be "OnTime"
under certain conditions.
For example, regardless of the difference between sched_time and incident_date_time if the conditions below exist
I want to set rsaStatus to "OnTime"
How can I add the conditions below to the script above without creating errors?
If route = 110 and direction = north
then "OnTime"
If route = 103 and direction = south
then "OnTime"
If route = 101 and direction = east
then "OnTime"
If route = 107 and direction = west
then "OnTime"
Thanks for any assistance.
If DateDiff ("s", {incident_log.sched_time},{incident_log.incident_date_time} ) > 330 then "Late" else "OnTime"
I have this function called rsaStatus with the code listed above. However I want to force "rsaStatus" to be "OnTime"
under certain conditions.
For example, regardless of the difference between sched_time and incident_date_time if the conditions below exist
I want to set rsaStatus to "OnTime"
How can I add the conditions below to the script above without creating errors?
If route = 110 and direction = north
then "OnTime"
If route = 103 and direction = south
then "OnTime"
If route = 101 and direction = east
then "OnTime"
If route = 107 and direction = west
then "OnTime"
Thanks for any assistance.