Jump to content
Sign in to follow this  
LxP

(1 > 2) returns 0

Recommended Posts

LxP

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?

Share this post


Link to post
Share on other sites
jpm

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

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  

×