Chris_1013 Posted July 27, 2004 Posted July 27, 2004 If I have code like this If $var ;do something EndIf Is that equivalent to If $var = 1 ;do something EndIf Or If $var > 0 ;do something EndIf I've used this loads, but never really known which is correct.
Administrators Jon Posted July 27, 2004 Administrators Posted July 27, 2004 (edited) A variable is "true" if it is non-zero (if it's a number) and not blank (if it's a string) False: 0 "" True: 1 10 -2 "hjkhk" And If $Var is the same as saying "If $var is true" Edited July 27, 2004 by Jon Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
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