Re: While Loops, Do While Loops, or For Loops in BGT
2017-07-09
Thread
AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector
Re: While Loops, Do While Loops, or For Loops in BGT Hi,basic difference between while loop and do while loop is, that while while loop first checks if it should to run, do while loop first run and after it checks, if it should to run again. You will not use probably this very often
Re: While Loops, Do While Loops, or For Loops in BGT
Re: While Loops, Do While Loops, or For Loops in BGT I forgot the do while loop even existed. While loop is fine for every purpose I've used it for, I've never needed the do while loop. The do while loop is just a while loop, but it makes sure the code runs at least once which is something
Re: While Loops, Do While Loops, or For Loops in BGT
Re: While Loops, Do While Loops, or For Loops in BGT All 3. If you can know how long a loop will last, or if you're performing an action on every item in an array, use a for loop. Otherwise, use a while loop. Do-while isn't needed that often. The example you described doesn't sound like
While Loops, Do While Loops, or For Loops in BGT
While Loops, Do While Loops, or For Loops in BGT Hey folks.So I'm just messing around with the Language tutorial in BGT.And My question is:What is better.While Loops, Do While Loops, or For Loops?Do you use all three?If so, why?I find that that it's not the While Loops that give me trouble