How to make Servo move for 90 and back from 90

Hello MorganS and slipstick

i use this code.

i just want to use it for a Another project with alexa.

Like On that will move 90 degrees and stop, off that will turn back again 90 degrees.

Thanks for try to help me.
MP