Jump to content

Feature request (documentation)?


Spiff59
 Share

Recommended Posts

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.
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...