Piecewise

Picewise[{{expr1, cond1}, ...}]
represents a piecewise function.
Picewise[{{expr1, cond1}, ...}, expr]
represents a piecewise function with default expr.

Heaviside function