Last Updated: February 25, 2016
·
319
· wulab

If-else expression in boolean

(cond && a) || (!cond && b)

It is basically a way to implement a Mux gate.