Get only -180 to 180 value

hello!

i’m looking for a way to get back only the value from -180 to 180 on my rotate object, because up -180 it will go to -181 and so on…

thank’s you in advance

no one can help me?