Modify

Opened 17 years ago

Closed 17 years ago

#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 J-Paul Mesnage, 17 years ago

Milestone: 3.3.1.0
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed in version: 3.3.1.0

comment:2 by Valik, 17 years ago

Milestone: 3.3.1.0
Resolution: Fixed
Status: closedreopened

This is not fixed in the way that I want.

comment:3 by Valik, 17 years ago

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, 17 years ago

Milestone: 3.3.1.0
Owner: changed from J-Paul Mesnage 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.