Opened 15 years ago
Closed 15 years ago
#1600 closed Bug (No Bug)
please check "=" Operator bug
Reported by: | ssmmhh@… | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.6.0 | Severity: | None |
Keywords: | = | Cc: |
Description
please check "=" Operator bug
- ConsoleWrite (0 = "x") ; -> True
- ConsoleWrite (0 == "x") ; -> False
- ConsoleWrite (1 = "x") ; -> False
- ConsoleWrite (1== "x") ; -> False
why "1." result is true, is this bug?
i found this issue in Array.au3 (_ArraySearch)
case compare 0 vs string
971 : If $avArray[$i] = $vValue Then Return $i
997 : If $avArray[$i][$j] = $vValue Then Return $i
Attachments (0)
Change History (2)
comment:1 Changed 15 years ago by doudou
comment:2 Changed 15 years ago by Valik
- Resolution set to No Bug
- Status changed from new to closed
What do I have to do to make it clear to you people that if you are asking a question on the issue tracker you're in the wrong place? I mean, I only have it in the big giant red box. I suggest you try reading it next time because your failures in creating this ticket are numerous.
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.
I think, this was discussed many times in the forums and this is "by design":
is equivalent to:
Since Number("x") returns 0 the statement is True. The following produces "expected" result on the other hand:
as it is the same as: