Modify

Opened 17 years ago

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

Resolution: No Bug
Status: newclosed

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.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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