- 1

is there any way to return true if both values are same either false or true

operator

25th Jan 2020, 10:43 AM
raju sahu
7 Antworten
+ 3
return val1 == val2
25th Jan 2020, 10:45 AM
Oma Falk
Oma Falk - avatar
+ 1
return val1 and val2 or not val1 and not val2
25th Jan 2020, 10:46 AM
Oma Falk
Oma Falk - avatar
+ 1
return not (val1 xor val2)
25th Jan 2020, 10:48 AM
Oma Falk
Oma Falk - avatar
0
no there is no but not equal
25th Jan 2020, 10:46 AM
Golooba Zubairi
Golooba Zubairi - avatar
0
For primitive operators you can use bitwise xor operator: not (x ^ y)
25th Jan 2020, 11:33 AM
Seb TheS
Seb TheS - avatar
0
return (value1 == 'something') == (value2 == 'somethingElse')
25th Jan 2020, 11:33 AM
rodwynnejones
rodwynnejones - avatar
0
what should you guys decide now
25th Jan 2020, 11:35 AM
Golooba Zubairi
Golooba Zubairi - avatar