Opened 16 years ago
Closed 16 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 Changed 16 years ago by Jpm
- Milestone set to 3.3.1.0
- Owner set to Jpm
- Resolution set to Fixed
- Status changed from new to closed
comment:2 Changed 16 years ago by Valik
- Milestone 3.3.1.0 deleted
- Resolution Fixed deleted
- Status changed from closed to reopened
This is not fixed in the way that I want.
comment:3 Changed 16 years ago by Valik
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 Changed 16 years ago by Valik
- Milestone set to 3.3.1.0
- Owner changed from Jpm to Valik
- Resolution set to Fixed
- Status changed from reopened to closed
Fixed in version: 3.3.1.0
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Fixed in version: 3.3.1.0