Question: Question about piecewise function

Hi I was trying to difine a constant c that exists in range(0,d). The constant c has two values and is depends on its x location.  The first value "a"  has a duration "e" , the second value "b" has a duiration "f". Start from x =0, the constant c has value "a", then "b", then "a"......

 How should I define this constant in "piecewise"?

Please Wait...