Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 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 Changed 16 years ago by Jpm

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

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 Changed 16 years ago by PHolzwarth@…

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

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

Sorry. Peter.

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

Action
as closed The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.