ripdad Posted March 9, 2010 Share Posted March 9, 2010 ; AutoIt v3.3.4.0 ; ; This Works ; If @OSVersion = 'WIN_XP' Then MsgBox(0, 'Result #1', @OSVersion) ; ; This Doesn't Work - (It Used to Work with Previous Versions) ; If Not @OSVersion = 'WIN_TEST' Then MsgBox(0, 'Result #2', @OSVersion) "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
Developers Jos Posted March 9, 2010 Developers Share Posted March 9, 2010 Should be If Not (@OSVersion = 'WIN_TEST') Then MsgBox(0, 'Result #2', @OSVersion) 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...
ripdad Posted March 9, 2010 Author Share Posted March 9, 2010 A little change in code Thanks Jos "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
ericnail Posted March 9, 2010 Share Posted March 9, 2010 Man! I'm new to coding and after seeing this, it really opened my eyes to how little things can be and mess EVERYTHING up haha! Good Catch Jos! 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