Using value from a graph to make a table display certain text

I am trying to set this up to display how far the triangle has rotated clockwise or counterclockwise.

The table seems like a better idea, but is incomplete.

What I want this to do is display how many degrees rotated clockwise or counterclockwise and the word, “clockwise,” or, “counterclockwise,” based on how far the triangle has gone.

I made a value, d, equal to your degrees of rotation in the graph (so I could be a little lazier about typing the code), then put this in the table CL.

cellContent(1,1): when d<0 "Counterclockwise" otherwise "Clockwise"
cellContent(1,2): when d>0 "${d}" otherwise "${numericValue("-${d}")}"