a = alarm.get("DR40880027-75494") print(a.notes) --Is the alarm assigned? if a.assigned_to ~= nil then assigned_to = true else assigned_to = false end print("Is this alarm assigned? ") if assigned_to == true then print("yes") else print("no") end arrival = a.arrival --Sets arrival as the alarm arrival time at the NAS b = timestamp.diff(arrival, "minutes") --Sets b as the difference in minutes between arrival and NOW (default) print("\n Difference between alarm arrival and now = "..b.." min") --if b (time from arrival till now) is more than 1hr and no note attached then do something: if (b >= 60 and assigned_to == true) then print("Is older than 1hr but is assigned") else print("is older than 1hr but is not assigned") end