Double condition Boolean
Posted: Wed Jan 19, 2022 3:40 pm
Hi
I just find this code line that i didn't know was possible.
X = (a<b)|(b<c);
With this X will be true if b<a or b>c.
Or false only if a<b<c.
Which is the contrary of what i expected...
Did you know a way to make an inverted result or what is supposed to do the | ?
Or another way to make double condition boolean ?
Thanks for any response !)
I just find this code line that i didn't know was possible.
X = (a<b)|(b<c);
With this X will be true if b<a or b>c.
Or false only if a<b<c.
Which is the contrary of what i expected...
Did you know a way to make an inverted result or what is supposed to do the | ?
Or another way to make double condition boolean ?
Thanks for any response !)