Create truth tables and let truthy handle the annoying part. Also, operate with logical gates like AND and OR.
Roberto W. P. Ribeiro
MIT