Modify ↓
Opened 15 years ago
Closed 15 years ago
#1098 closed Bug (No Bug)
Case logical bug
Reported by: | raphaelpereira.itpro@… | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.1.1 | Severity: | None |
Keywords: | Cc: |
Description
("abc" = 0) IS TRUE IN:
Select
Case "abc" = 0
MsgBox(0, "test1", "test1")
Case "xyz" = "xyz"
MsgBox(0, "test2", "test2")
Case Else
MsgBox(0, "test3", "test3")
EndSelect
Attachments (0)
Change History (1)
comment:1 Changed 15 years ago by Valik
- Resolution set to No Bug
- Status changed from new to closed
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.
Note: See
TracTickets for help on using
tickets.
It's not a bug. The string "abc" is promoted to a number. The number its promoted to is 0 because the string does not contain digits. Thus 0 is compared to 0 which is true.