Last Updated: February 25, 2016
·
340
· wulab

If-else expression in boolean

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

It is basically a way to implement a Mux gate.