I have a variable I want to set depending on the values in three booleans. The most straight-forward way is an if statement followed by a series of elifs:
if a a
Maybe not much better, but how about
results = ['first', 'second', 'third', 'fourth', 'fifth', 'sixth', 'seventh', 'eighth'] name = results[((not a) << 2) + ((not b) << 1) + (not c)]