I have two variables a and b . I want to compare both a and b with a value like 10 , for example.
I can do it like this:
10 == a && 10 == b
But I was wondering if there is a way to write this in one expression? (For example, like a == b == 10 )
source share