Piecewise Functions

One function with more than one rule, and the endpoint that decides which rule owns the join.