Reverse a Timeline

Hello everyone, so I have this target that I want to move back and forth. Right now I know how to make it go where I want using the Timeline node but I can’t figure out how to reverse it. I don’t use the Vector properties of the timeline because I need the End Location to be modifiable. Here’s my current setup:

This might not be the best solution, but what I’m doing to have a timeline keep on going back and forth between two points is basically just adding a flipflop when the timeline is finished and setting a bool to true and false. Before the timeline, I check if the bool is true or false. If true, you play the timeline, if false you reverse it. After setting the bool, you plug it to the branch before the timeline (or make a custom event to make it look cleaner).

There are probably more efficient ways to do this, but this one is simple enough and easy to do.