a = alarm.get("XZ18141162-33966") print(a.notes) --Is there a note attached? if a.notes >= 1 then noteAttached = true else noteAttached = false end print("Is a note attached? ") if noteAttached == 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 noteAttached == true) then print("Is older than 1hr but has note") else print("is older than 1hr but no note") end