Limit of a continuous function at a point is equal to the value of the function at that point.

Piecewise Functions. The piecewise function f (x) is continuous at such a point if and only of the left- and right-hand limits of the pieces agree and are equal to the value of the f.

continuity-piecewise-function

Continuity of Piecewise function