Last Updated: February 25, 2016
·
343
· wulab

If-else expression in boolean

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

It is basically a way to implement a Mux gate.