Jump to content
Sign in to follow this  
Spiff59

Feature request (documentation)?

Recommended Posts

Spiff59

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 - Operators

section 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.

Share this post


Link to post
Share on other sites
BrettF

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

Share this post


Link to post
Share on other sites
Spiff59

Am asking that the documtation (help system) be made more informative.

Edited by Spiff59

Share this post


Link to post
Share on other sites
BrettF

I know that, and I'm asking if thats the best place to add it.... :lmao:

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 by BrettF

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.