Modify

#4096 new Bug

0/false is evaluated as empty string when single = is used

Reported by: xsxizas@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.18.0 Severity: None
Keywords: Cc:

Description

; Example #1
Local $iDateCalc= 0
If $iDateCalc == "" Then
MsgBox(0,"","EMPTY String")
EndIf
If $iDateCalc = "" Then
MsgBox(0,"",$iDateCalc & " is evaluated as EMPTY String with single '=' ")
EndIf

; Example 2
Local $iDateCalc= False
If $iDateCalc == "" Then
MsgBox(0,"","EMPTY String")
EndIf
If $iDateCalc = "" Then
MsgBox(0,"",$iDateCalc & " is evaluated as EMPTY String with single '=' ")
EndIf

Attachments (0)

Change History (0)

Modify Ticket

Action
as new 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.