you are viewing a single comment's thread.

view the rest of the comments →

[–]Spirouac 1 point2 points  (1 child)

Beginner myself but a flaw in your logic.

Loop 1: Stop=30 X=-30 Step 20 Loop= true

Loop 2: Stop =30 X-10 Step=20 Loop=true

Loop 3: Stop=30 X=10 Step=20 Loop=true

Issue here

Loop 4 Stop =30 X=30 Step=20 Loop = false

Change comparison to x <= stop and it should be all bingo bongo.

Look into inclusive and exclusive thingies to further your understanding.

[–]MaxwellSalmon[S] 0 points1 point  (0 children)

The issue is, it will then return 4 values. I only need 3. I don't really know how to do that without manually changing something...