Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#780 closed Bug (No Bug)

bug with zero

Reported by: hunter Owned by:
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: Cc:

Description

$i=0
If $i="dfdsfds" Then

MsgBox(0,"","This is a bug!")

Else

MsgBox(0,"","No bug.")

Endif


In previous versions such bug was not.

Attachments (0)

Change History (2)

comment:1 by J-Paul Mesnage, 17 years ago

Resolution: No Bug
Status: newclosed

I am curious to see which version was OK from your point of view as all official releases and certainly all betas display "This is a bug!".
what AutoIt does is comparing the integer 0 to a converted string to integer.
This conversion always return 1 except when the string is empty.

NO BUG

comment:2 by PHolzwarth@…, 17 years ago

Sorry folks, I didn't understand the meaning of FileFindNextFile. Should have added a line like

$file= $rootDir & "\" & $file

Sorry. Peter.

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.