How to turn several truth values into one number? — Fancade Wiki

How to turn several truth values into one number?

Assign each truth a unique power of 2 and add them to a sum if true.
Each combination of truths will have a unique sum.
It's a little cumbersome, but might be preferable to having several red inspect blocks on your level.