Administrators Jon Posted January 17, 2004 Administrators Share Posted January 17, 2004 http://www.hiddensoft.com/autoit3/files/unstable/Note that I rewrote most of the "If" code so please check that.Added: ElseIfChanged: All block structures (IF/WHILE/FOR, etc.) are now checked before execution.Fixed: Better detection of illegal nesting, e.g.: if 1 = 1 while 1 endif wendChanged: (Internal) lots of error checking code removed as a nice side effect of initial block structure checking Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Developers Jos Posted January 17, 2004 Developers Share Posted January 17, 2004 (edited) Found a bit of confusion error message.. When you are missing a Then in a block If statement it gives now the error:Error: "EndIf"statament with no matching "If" statement.If 1=1 ; code endifits easy in this example, but I tested it with a 600 lines script with lots of If..Endif statements and at first was looking for a missing If when I got this error. Edited January 17, 2004 by JdeB 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. Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 17, 2004 Author Administrators Share Posted January 17, 2004 Changed. Ta. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Valik Posted January 17, 2004 Share Posted January 17, 2004 Added: ElseIfWho are you and what did you do with the real Jon? He would of never added ElseIf, he doesn't like them. Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 17, 2004 Author Administrators Share Posted January 17, 2004 Moment of weakness. I've started to get the hang of them in C too, so they didn't seem quite so evil. And after I checked the code it seemed easy to add (that's if my assumptions on how it should work are OK ) Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
jpm Posted January 17, 2004 Share Posted January 17, 2004 Moment of weakness.I've started to get the hang of them in C too, so they didn't seem quite so evil. And after I checked the code it seemed easy to add (that's if my assumptions on how it should work are OK )I hope david will read this message Link to comment Share on other sites More sharing options...
tylo Posted January 17, 2004 Share Posted January 17, 2004 Hmm. Select .. EndSelect is redundant now, but I don't think you dare removing it. select case X1 Y1 case X2 Y2 case else Y3 endselect ; identical to (even a line shorter): if X1 then Y1 elseif X2 then Y2 else Y3 endif You may as well follow up with Switch .. Case .. EndSwitch blub Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 17, 2004 Author Administrators Share Posted January 17, 2004 I much prefer the Select for large sections - elseif for small ones. I still find elseif very difficult to read. Maybe it's because it's not symmetrical enough. You've probably noticed my odd block layouts in the C source - can't read a thing otherwise And I really like the Select in v3 and I'm definately not changing it. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 17, 2004 Author Administrators Share Posted January 17, 2004 It it weren't for this "Administrator" rank i would be sporting the ultimate rank of "Mass Spammer!" Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Lemures Posted January 17, 2004 Share Posted January 17, 2004 haha Link to comment Share on other sites More sharing options...
Recommended Posts
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