Piecewise
Piecewise[{{val1,cond1},{val2,cond2},…}] represents a piecewise function with values vali in the regions defined by the conditions condi.
Piecewise[{{val1,cond1},…},val] uses default value val if none of the condi apply. The default for val is 0.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.