For each (Integer A) from # to #, do (Actions)

HG-Bonfire

New Member
Reaction score
22
For each (Integer A) from # to #, do (Actions)

Ive always wondered how this trigger works, can anybody explain it?
 

emjlr3

Change can be a good thing
Reaction score
395
i think the easiest way to get it is through thr ue of JASS

Code:
local integer i = 0

loop
    exitwhen i>10
    call Do_ISH
    set i = i + 1
endloop

basically, do whatever is in the loop from 0-10 times, so it will be done 11 times
 
D

Dino.pl

Guest
> so its like a loop that will run a certain number of times?
Exactly :)
 

SFilip

Gone but not forgotten
Reaction score
634
HG-Bonfire said:
so its like a loop that will run a certain number of times?
...while increasing one variable by 1 every time it runs. very usefull for handling arrays.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top