Hi Comixian,
You need to use some sort of Flow Control. One idea would be to use a Gate.
I didn’t set up your variables and math but this should give you the idea.
TJ