Question: Reference conditions of piecevise defined function

I have a piecevise defined function where i wanna reference the condition inorder to use the maximum and minimum values of the defined range in other functions. Is there a function for this that i just cant find or do i have to use a workaround?

These are the values im trying to access. and heres the function:

f := proc (t) options operator, arrow; piecewise(-1 < t and t <= 0, t+1, 0 < t and t <= 1, 1-t) end proc

Please Wait...