This is a very simple example showing how to use a (float) variable which stores a value and uses is in the next frame.
The functions Do Something and Compute Variable (sry for the spelling error in the screenshot) are just dummy functions I created to show you the places where you have to put your data in the variable and where you can use it in the next frame.
I hope this helps you.