Storing a variables current amount - 3rd person

So I have made a working 3rd person zoom similar to this one - YouTube

However I am trying to take it further and allow for a toggle 1st/3rd person view. It would simply switch between the 3rd and 1st person instantly on button click, no zooming. Thing is I also want to be able to save the current zoom amount before going 1st person so when I go back into 3rd person it is the same zoom as it was before I entered 1st person. Ideas?

Thanks

So I figured out how to store the data, I added a float variable setter node at the end of each of my InputAction zoom formulas, it would only get activated if that current InputAction formula was activated. This always kept my stored zoom data current. I then Created another InputAction for the toggle which checked to see if my current zoom was < my minimum allowed zoom. If it was, that meant I was in 3rd person and so the formula would toggle to 1st.

If it wasn’t then it went through another branch to check if my stored zoom was <= to my minimum zoom. If true I made a default variable that would reset the 3rd person zoom to what ever the default was set to; Since the stored zoom would be equal to the first person zoom it was necessary to have a 3rd person fall back, otherwise you wouldn’t be able to reenter 3rd person using the toggle action only the zoom (this can be set to what ever you/player wants of course). If false then I applied my stored zoom to my current zoom.

What a headache hope someone gets some use out of it. I also highly modified the above tutorial though and there was a lot of extra troubleshooting. So anyone who attempts this keep in mind of your float variable signs on your conditions. They make all the difference.

Goodnight!