Chris_1013 0 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. Share this post Link to post Share on other sites
Jon 1,011 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/ Share this post Link to post Share on other sites