MattNis 0 Posted February 2, 2004 What's the syntax for breaking out of a Select...case.... structure? such that if one of the case statements has been satisfied, I could just skip the rest of the checks thanks [quote]I was busy waiting all night for the Columbus Day Bunny to come down my chimney and light fireworks in my pumpkin.There's so much wrong with that.Oh, I'm sorry, i forgot you were Jewish.[/quote] Share this post Link to post Share on other sites
Jos 2,177 Posted February 2, 2004 Think thats a feature already... from the helpfile:If the expression is true the following statements up to the next Case or EndSelect statement are executed. If more than one of the Case statements are true, only the first one is executed. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
Valik 478 Posted February 2, 2004 I think the select structure only matches one case, regardless if any of the following cases also match. You might test this with something like: Select Case 1 = 1 MsgBox(4096, "", "First Case") Case 2 = 2 MsgBox(4096, "", "Second Case") EndSelect I think that you should only see the message box which says "First Case". Share this post Link to post Share on other sites
MattNis 0 Posted February 2, 2004 Thanks, I wasn't sure, but I thought that some post in the "old forum" said they all get evaluated. [quote]I was busy waiting all night for the Columbus Day Bunny to come down my chimney and light fireworks in my pumpkin.There's so much wrong with that.Oh, I'm sorry, i forgot you were Jewish.[/quote] Share this post Link to post Share on other sites