Is there a node for swapping values or storing variables temporarily?

At the start of the year I built a new computer and forgot to back up my Unreal projects before migrating over, so I’m using this as an opportunity to re-learn how I did what I did and why. An issue I’ve encountered is when I need to swap the values of two variables, as seen in the screenshot below.

But since this is so simple and common, I don’t want to create a new function every time I need to use a local variable for temporary storage. Nor do I want to create proper blueprint variables when they’re only going to be used once, and aren’t modified by child blueprints.

So, as the title asks: is there a node that can effectively swap the values of two or more variables? Alternatively, is there a way to store the current value of one or more variables, that doesn’t involve a local variable? And if so, how do I use it?

a wildcard in a macro might work.

otherwise using a common parent class to swap the variables would minimalize the number of functions required

1 Like

Exactly what @Auran131 said.
Use a similar macro:

If it works for you please mark Auran’s post as an answer. (not this one)

2 Likes