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 , 17 years ago
| Milestone: | → 3.3.1.0 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
comment:2 by , 17 years ago
| Milestone: | 3.3.1.0 |
|---|---|
| Resolution: | Fixed |
| Status: | closed → reopened |
This is not fixed in the way that I want.
comment:3 by , 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 , 17 years ago
| Milestone: | → 3.3.1.0 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Fixed |
| Status: | reopened → closed |
Fixed in version: 3.3.1.0
Note:
See TracTickets
for help on using tickets.

Fixed in version: 3.3.1.0