Jump to content

Comparisons With Ptr(x)


wraithdu
 Share

Recommended Posts

What kind of comparison is AutoIt doing here? Numeric or string? It seems like string to me, and that doesn't seem correct.

;broken
ConsoleWrite((Ptr(5) = 5) & @CRLF)
ConsoleWrite((Ptr(5) > 0) & @CRLF)
ConsoleWrite((Ptr(5) < 0) & @CRLF)

; works
ConsoleWrite((Number(Ptr(5)) = 5) & @CRLF)
ConsoleWrite((Number(Ptr(5)) > 0) & @CRLF)
ConsoleWrite((Number(Ptr(5)) < 0) & @CRLF)
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...