sykes Posted December 29, 2003 Share Posted December 29, 2003 OK ... I just want to clarify here: Using single line Ifs: if $var == "amount" Then DoStuff Does this mean you use these for If statements that aren't going to need an Else statement? Also does this mean you have to use the Then statements in all Ifs? I'm assuming using an If Then Else statement still requires the EndIf? We have enough youth. How about a fountain of SMART? Link to comment Share on other sites More sharing options...
CyberSlug Posted December 29, 2003 Share Posted December 29, 2003 By the way, the == is a case-sensitive comparison. Normally, = is all you need. The single-line If is useful when you want to conditionally run ONE statement. If you want multiple statements or want and else case, then you must use If...[Else]...EndIf Hope that helps clarify Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
sykes Posted December 29, 2003 Author Share Posted December 29, 2003 Gotcha ... So all that changed was the ability to use an If statement without all the trimmin's Thanks a bunch We have enough youth. How about a fountain of SMART? 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