Complication for gear that show the 7 days

hi, i have create a funny gear that must show the day of the week.
this is the icon:

of course the icon is: send to front
while the days are: send to back

now you can see the day on top, only for understand the problem.

i want this expression for the gear:
if day is monday then rotate the gear at 120°
.
.
.
if day is saturday then rotate the gear at -80°
if day is sunday then rotate the gear at -120°

thank for the help.

solved:
$#DOW#=0?-120:0$
$#DOW#=1?120:0$
$#DOW#=2?80:0$
$#DOW#=3?40:0$
$#DOW#=4?0:0$
$#DOW#=5?-40:0$
$#DOW#=6?-80:0$

1 Like