How to control a simple rotator

Hi, I’m a beginner in UE4 and I’m trying to control the rotation caused by a rotator I made following a tutorial on Youtube. It works, but being inexperienced in UE I can’t control it. It has an event tick that multiplies the seconds with a value in degrees I give to the rotator.
Here’s the screenshot:

What I want to do is to control the rotation: I want my mesh to yaw by a set amount of degrees in a set amount of time, and going back.
How can I achieve this? Googling didn’t help me because I’m a noob and I can’t read between the lines of other cases slightly different from mine. Thanks!!