Designed to minimise the use of IFs, and takes advantage of False being 0 and True being 1 in Python.