View Single Post
Old 28th March 2018, 18:45   #10
Major Dude
Join Date: Mar 2008
Location: Erlangen
Posts: 856
The issue with that code is that native variables such as x ynd y are meant to be written OUT, and they are not remembered from one instance to the next. You should use your own variables e.g.

x0 = if(above(x0,1+.1*instance),0,x0+diff);
x = x0;
Nitorami is offline   Reply With Quote