Chaining Double Equals == Returns False
I have 3 textboxes that I am trying to do some validation that all 3 values match. I have a simple function: function DoesSubsriberSignatureMatch() { return tbNameOfSubscri
Solution 1:
Take
"a"=="a"=="a"and break it down. So first
"a" == "a"equals what? true. Right. Now substitute true in for that first part
true == "a"which of course is false
Solution 2:
Because a == a yields true, and true != a.
(Unless a holds the value true).
Solution 3:
Coming from Python, perhaps? Most languages don't actually have comparison chaining. Trying it produces nonsense results.
Post a Comment for "Chaining Double Equals == Returns False"