its giving true for both values in boolean. how to improve the code?
126
How do I compare strings in Java?
39781
Why does the is operator return false when given null?
22602
Why is == true for some Integer objects?
6971
boolean variable values in PHP to javascript implementation
43338
count of false gives 1 and if of an empty array gives false. why?
109567
How does operator  work when comparing two strings?
59951
Why does list.append evaluate to false in a boolean context?
1469
Is there a difference between "==" and "is"?
128363
Boolean Union vs Difference Error - Swapped Behaviour
156604
Why does "true" == true show false in JavaScript?
151837
Why doesn't the boolean modifier work for me?
155692
Why does bool(xml.etree.ElementTree.Element) evaluate to False?
77044
Boolean vs boolean in Java
154049
why does if("string") evaluate "string" as true but if ("string"==true) does not?
138518
Why is one string greater than the other when comparing strings in JavaScript?
72909
What does the |= operator do in Java?
23856
Evaluating an If condition to yield True/False