| 01-14-2004, 10:20 PM | #1 |
is there a loop when function in JASS? So it would loop every time that i = j? if so how would you write the function? I want a function that will loop 7 times, but only when the intergers i and j are equal. |
| 01-14-2004, 10:32 PM | #2 |
function loop7times takes integer i, takes integer j returns nothing local integer count loop exitwhen (i != j or count=7) ...your actions here... set count=count+1 endloop endfunction that should do what you want. You can set up all sorts of loops with jass. |
