Loop a Dynamo file


I want my Dynamo file to run after a particular number is automatically incremented by 1. I tried using the Loop while node but what it is doing is that it is only running the script for the maximum value, and not executing it for all the values in between.


Dynanimator has some pretty nifty examples of iterating. Maybe disect some of those nodes?