BBot - The best bot of the world
for loop - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: for loop (/thread-11413.html)



for loop - a-grabowski - 08-20-2013

Hi,
is it possible to include 'for' loop in the macro? If it is - how to do it? Beacuse code which i found doesn't work at all..

for x:=0, x<5, 1 do
[here i do what i need to do]
end


RE: for loop - MegaNo0body - 08-20-2013

You could do it with pure variable logic.

X:=0
{TryAgain}
->Logic
VarAdd(X, 1)
X==5 [TryAgain]