foo="bar"; if(foo == "bar"){ doX(); }else{ "But this ALWAYS runs" } Why?
126
How do I compare strings in Java?
20667
Using OR comparisons with IF statements
109101
String equality in \ifx conditional using output from concatenating macros
8979
Why use apparently meaningless do-while and if-else statements in macros?
73910
Else statement is executing when TRUE
91006
Why can I refer to a variable outside of an if/unless/case statement that never ran?
156604
Why does "true" == true show false in JavaScript?
134742
String comparison in Python: is vs. ==
22122
How do you use the ? : (conditional) operator in JavaScript?
136178
“While” loop without “do”; “if” statement without “then”
82435
When should you push variables in quotes in boolean conditions?
110007
What is the difference between operator "=" and "==" in Bash?
665
Which equals operator (== vs ===) should be used in JavaScript comparisons?
148523
How to check whether operator== exists?
133999
Does variables' order matter when doing == and === comparisons?
137088
if/else vs ternary operator
117657
Why does javascript accept commas in if statements?