July 10, 200322 yr 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!
July 10, 200322 yr 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?
July 11, 200322 yr Author 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!
July 11, 200322 yr Whatever works for you should be okay, especially with an example like this that doesn't take up much space.
July 11, 200322 yr Author oh great! I was getting worried that FM might "go crazy executing the IF-ing" nice...thank you for re-assurace! All the best!
July 14, 200322 yr 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.
July 14, 200322 yr 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.
Create an account or sign in to comment