CKonash Posted June 8, 2017 Posted June 8, 2017 Hi. I have a script that runs to add attendance to a fire department incident report. Before the script runs it checks the current time against the dismissed time of the call. If the current time is more than two hours after the dismissed time the script will not allow you to enter the attendance. My question is how would I add a second means of validation to not allow an attendance record to be added unless 15 minutes have elapsed from the start of the call while keeping the two hour time out component? Thanks Chris
comment Posted June 8, 2017 Posted June 8, 2017 Not sure where exactly you are having problems with this. If you want to have two cumulative conditions, join them by the and logical operator, e.g. : If [ Event Report::Start + 900 < Get ( CurrentTimestamp ) and Get ( CurrentTimestamp ) < Event Report::Dismissed Time + 7200 ] Perform Script [ "Add Attendance" ] Else Beep End If Note that only one test is necessary; in your version, you're testing twice for (almost) the same thing. -- P.S. Please post your script as code next time, so I don't have to retype.
CKonash Posted June 9, 2017 Author Posted June 9, 2017 Thanks everyone. I'm going to try this. I didn't know that. Thanks again!. Chris
Recommended Posts
This topic is 2724 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now