Spiff59 Posted February 2, 2009 Share Posted February 2, 2009 As demonstrated by the following example: $var1 = 0, $var2 = "" If $var1 = $var2 Then MsgBox(1,"","zero = null") If $var1 == $var2 Then MsgBox(1,"","zero == null") The Language Reference - Operatorssection of the help system ought to be changed from: = Tests if two values are equal (case insensitive if used with strings). == Tests if two values are equal (case sensitive if used with strings)to: = Tests if two values are equal (case insensitive, zero and null treated as equal). == Tests if two values are equal (case sensitive, zero and null treated as not equal). Thanks. Link to comment Share on other sites More sharing options...
BrettF Posted February 2, 2009 Share Posted February 2, 2009 Well look at it this way. 0 = "" which = false which equals anything that isn't true which equals anything that is not null and is greater or less than 0. Wowah thats a mouthful. Its basically due to the fact that AutoIt does not have datatypes (technically there is one, the varient...) For a slightly different explanation check out my tutorial under true or false. I'm not sure whether the documentation there needs to be changed, or something added explaining the datatypes of AutoIt and how it handles things... Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Spiff59 Posted February 2, 2009 Author Share Posted February 2, 2009 (edited) Am asking that the documtation (help system) be made more informative. Edited February 2, 2009 by Spiff59 Link to comment Share on other sites More sharing options...
BrettF Posted February 2, 2009 Share Posted February 2, 2009 (edited) I know that, and I'm asking if thats the best place to add it.... Cheers, Brett EDIT: But remember, if we addeded every little thing about AutoIt into the helpfile it would be massive, and longer than the sands of time itself... But I think this is worthy, because alas it is one of many similar questions I have seen in the past few weeks... Edited February 2, 2009 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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