Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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 

Screen Shot 2017-06-08 at 3.28.38 PM.png

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.

 

Hi  Chris, 

Here is what comment is referring to.

FMF Body Code icon.png

  • Author

Thanks everyone.  I'm going to try this.  I didn't know that.  

Thanks again!. 

Chris

 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.