Run a loop in a formula

Hello everybody,


v=1000
vf = 0
a=150
n=36
x=1
while x <= n:
if x==1:
vf = v*1,005
elif:
vf=(vf+a)*1,005
x=x+1
return vf


I can’t find in appgyver a way to build the while loop.
Is there any way??

Try something, like this


IN the one set variable, you should set your i=i+1 and in the other, the loop.
I like to use a very spall delay, but its not mandatory.