Leb i Sol Posted July 10, 2003 Posted July 10, 2003 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!
-Queue- Posted July 10, 2003 Posted July 10, 2003 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?
Leb i Sol Posted July 11, 2003 Author Posted July 11, 2003 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!
-Queue- Posted July 11, 2003 Posted July 11, 2003 Whatever works for you should be okay, especially with an example like this that doesn't take up much space.
Leb i Sol Posted July 11, 2003 Author Posted July 11, 2003 oh great! I was getting worried that FM might "go crazy executing the IF-ing" nice...thank you for re-assurace! All the best!
borzhd Posted July 12, 2003 Posted July 12, 2003 If statements are fine but "If" they are too long use "Case". John
Helpful Harry Posted July 14, 2003 Posted July 14, 2003 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.
IdealData Posted July 14, 2003 Posted July 14, 2003 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now