Hi friends, its me, Joseph!
HOW do i do this--->
3 boolean vars: a,b,c
I waNT TO chek if 1 of the variables is true, and then if 2 of the three is true...
How can I write that so its not too long of a line? Like i want to pass "if one of these three is true, do this" and "else if 2 of the three is true, do that".
??? ???
If I'm not mistaken, bools are simply ints that are limited to values of either 0 or 1, so you should be able to treat them as numeric values. So to see if one is true:
int total = a+b+c;
if (total == 1) DoSomething();
else if (total == 2) DoSomethingMore();
Etc.
wowch thats smart! :o
i thank you sir