Moving Back and Forth - Animation Node(PYTHON) vs Unity (C-SHARP) Boolean Switch Logic
I see no good reason to discretize such simple animation. A parametric approach might be better. To move an object between 0 and 1 in 20 frames, you can use such node tree:



To see why it works, plot the function. Another approach would be to use the animation nodes in Animation Nodes: