- 1
is there any way to return true if both values are same either false or true
operator
7 Answers
+ 3
return val1 == val2
+ 1
return val1 and val2 or not val1 and not val2
+ 1
return not (val1 xor val2)
0
no there is no but not equal
0
For primitive operators you can use bitwise xor operator:
not (x ^ y)
0
return (value1 == 'something') == (value2 == 'somethingElse')
0
what should you guys decide now