I have 3 bool variables x,y,z. Now at any given moment I can have one out of 2^3=8 combinations as below.

e.g. x=true, y=false and z=false or
x=false, y=true and z=true and so on.

If I see from programming perspective there are 8 cases or may be 8 or greater if else statement to determine what is the combination at that moment.
At any given moment if I want to know what combination is present(given the values of x,y,z) How can I know without using if-else ladder, which makes code logic little bulky. Is there any better/simple logic/way to do it.