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 client where his calendar year starts April 2013.  Not January 2013.  So I built a script step in my Start Up script that SETs the Preference Field "Pref Begin Yr" to the current year only if ...

 

 

If

 

[ Month ( Get ( CurrentDate ) ≥ Preferences::Pref Begin Month and Year ( Get ( CurrentDate ) ) ≠ Preferences::Pref Begin Yr ) ]

 

Set Field [ Preferences::Pref Begin Yr; Year ( Get ( CurrentDate ) ) ]

 

End If 

 

This is how i read this script step:

 

1 ( current month ) ≥ 4 ( preference month  )   and   2013 ( current year ) ≠ 2012 ( preference year )

 

The set field should not SET, but is does ???  How can this expression be valid when 1 is obviously less than 4.  Maybe I don't really understand the "AND". 

 

Do I put:   Year ( Get ( CurrentDate ) ) ≠ Preferences::Pref Begin Yr )  in parentheses " (  ....  )" ??

 

Any guidance here would be grateful.  Thank you.

 

Tom

At first glance, it looks like you have misplaced parentheses.

 

Move the last ) to just after the first Get(CurrentDate), to get:

 

[ Month ( Get ( CurrentDate )  ) ≥ Preferences::Pref Begin Month and Year ( Get ( CurrentDate ) ) ≠ Preferences::Pref Begin Yr  ]

  • Author

Yeah ... boy what a dope, I looked at that thing for three hours.

 

I see it!

 

Thank you :-)

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.