Jump to content

(1 > 2) returns 0


LxP
 Share

Recommended Posts

Hi devs,

AutoIt now has support for Booleans, so I would expect the following code to display False/True:

Local $Test1 = 1 > 2
Local $Test2 = 'Z' > 'A'

MsgBox(0x40, 'Boolean test', $Test1 & @LF & $Test2)

however 0/1 is displayed. Is this a bug?

Link to comment
Share on other sites

Hi devs,

AutoIt now has support for Booleans, so I would expect the following code to display False/True:

Local $Test1 = 1 > 2
Local $Test2 = 'Z' > 'A'

MsgBox(0x40, 'Boolean test', $Test1 & @LF & $Test2)

however 0/1 is displayed. Is this a bug?

for compatibility reason . Boolean was introduce is the beta and cannot be generalized without breaking a lot of scripts
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...