Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hi People!

here is the scenario:

--------------------------------------------

IF { condition_1 AND condition_2} OR{condition_1 AND condition_3}

THEN

GOto [Layout_1] OR [layout_2]

---------------------------------------------

is this possible?shold I just make another script and separate the "OR"s condistions?

thanx_again!

Posted

If (condition1 and condition2)

Go to Layout[1]

Else

If (condition1 and condition3)

Go to Layout[2]

End If

End If

Is this what you mean?

Posted

yes, I was just wondering when one 'has to stop' with the IF statements and how many are "too many" IFs and END IFs?

would your approach be "better"?

thank you!

Posted

Whatever works for you should be okay, especially with an example like this that doesn't take up much space.

Posted

oh great!

I was getting worried that FM might "go crazy executing the IF-ing" laugh.gif

nice...thank you for re-assurace!

All the best!

Posted

Unforuntately we in the Scripts area here and there is no Case function for scripts, only for calculations ... unless they've added it to FileMaker 6 {crosses fingers} since I'm still stuck in FileMaker 5.5.

Posted

I'm sure I saw a tech note on www.filemaker.com about the max no of IF statements in script, but it's more than most of us would ever use before breaking the script down.

This topic is 7807 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.