Modify

#885 closed Bug (Fixed)

Investigate why Default compares true to False

Reported by: Valik Owned by: Valik
Milestone: 3.3.1.0 Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description

The following code compares true and displays "False" when tested. That doesn't seem correct. Default should only compare true to an empty string (""), the numeric value -1 and Default itself.

Local $a[3] = [ Default, True, False ]
For $i = 0 To UBound($a) - 1
	If $a[$i] = Default Then ConsoleWrite($a[$i] & @CRLF)
Next

Attachments (0)

Change History (4)

comment:1 by Jpm, on Mar 31, 2009 at 1:04:44 PM

Milestone: 3.3.1.0
Owner: set to Jpm
Resolution: Fixed
Status: newclosed

Fixed in version: 3.3.1.0

comment:2 by Valik, on Mar 31, 2009 at 4:52:17 PM

Milestone: 3.3.1.0
Resolution: Fixed
Status: closedreopened

This is not fixed in the way that I want.

comment:3 by Valik, on Apr 1, 2009 at 12:48:01 AM

After some discussion it's been determined that Default should only compare true to Default. It should not compare true to anything else including "" and -1. So with that in mind I'm closing this with the original fix from JP as it does solve the issue with comparison to False.

comment:4 by Valik, on Apr 1, 2009 at 12:53:14 AM

Milestone: 3.3.1.0
Owner: changed from Jpm to Valik
Resolution: Fixed
Status: reopenedclosed

Fixed in version: 3.3.1.0

Modify Ticket

Action
as closed The owner will remain Valik.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.