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: Severity: None
Keywords: Cc:


("abc" = 0) IS TRUE IN:

Case "abc" = 0

MsgBox(0, "test1", "test1")

Case "xyz" = "xyz"

MsgBox(0, "test2", "test2")

Case Else

MsgBox(0, "test3", "test3")


Attachments (0)

Change History (1)

comment:1 Changed 15 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

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.

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.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.