Skip 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.

Using "and" in Calculation

Featured Replies

Im working on a calculation that references a pre-edfined date field.

The if statement i am tryin to create is:

if datefield < currentdate and > datefiled + 30

This is the exact calculation i have entered but it does not appear to work:

TechSupport::SW PD 2 > Get ( CurrentDate) and TechSupport::SW PD 2 < TechSupport::SW PD 2 + 30

To give you some background on what i am tryin to accomplish:

The date field is a maintenance date, so lets say that their maintenance expires 7/31/10. They have a 30 day grace period from the date of expiration. so i want to mark the record to show that they are in a crace period if the current date is anywhere between 8/1 and 8/31

so if the current date is greater than the maintenance date, but less than the maintenance date + 30, then i want to show the record is in a grace period.

Hope it makes sense

Edited by Guest

Use parentheses to ensure the calc is evaluating per your intention. But the second part doesn't make sense. X will always be less than X + 30.

(TechSupport::SW PD 2 > Get ( CurrentDate))

and

(TechSupport::SW PD 2 < TechSupport::SW PD 2 + 30)

Edited by Guest

Try =


Datefield < Get (CurrentDate) and Get (CurrentDate) < Datefield + 30 

  • Author

My apologies, after re-reading what i had posted, the second part was supposed to read

current date < date + 30

but it now works flawlessly, thank you

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.