Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4400 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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  ]

This topic is 4400 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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