I'd like to do something like this
if(a==b==c==d==e){
...
}
Of course this won't work, i'd like to know if there some easy way to do that without doing
if((a==b)&&(b==c)&&(c==d)&&(d==e)){
wich sounds simple but it isn't with long names
Thanks
If these variables are of an integral type, you can use if ((a&b&c&d&e)==a)...
Disch wrote: |
---|
(a&b&c&d&e) == (a|b|c|d|e) |
@Athar:
Last edited on