This post of scimonster's probably explains it better than I ever could
Offline
An infinite loop is one which repeats forever.
A finite loop is one which repeats for a set amount of times.
A conditional loop is one that repeats until a condition (eg healthlevel < 1) is true or false.
Offline
ProgramCAT wrote:
An infinite loop is one which repeats forever.
A finite loop is one which repeats for a set amount of times.
A conditional loop is one that repeats until a condition (eg healthlevel < 1) is true or false.
Yes!
Offline
turkey3 wrote:
ProgramCAT wrote:
An infinite loop is one which repeats forever.
A finite loop is one which repeats for a set amount of times.
A conditional loop is one that repeats until a condition (eg healthlevel < 1) is true or false.Yes!
Yet another spam-like post of this kind by you.
Offline
Of course, an infinite loop can be faked by a conditional loop whose condition never allows it to stop (repeat until false or while true). Also, loops can be atomic, which means is evaluates it all then displays, or nonatomic, which means it displays after each run. Scratch uses nonatomic, which allows an infinite loop. However, if you use something like JavaScript, you'll find while(true) will crash your browser.
Offline
trinary wrote:
turkey3 wrote:
ProgramCAT wrote:
An infinite loop is one which repeats forever.
A finite loop is one which repeats for a set amount of times.
A conditional loop is one that repeats until a condition (eg healthlevel < 1) is true or false.Yes!
Yet another spam-like post of this kind by you.
That's not really spam. It's saying that ProgramCAT's post is true.(It is by the way.)
Last edited by ImagineIt (2012-03-15 16:40:31)
Offline
ImagineIt wrote:
trinary wrote:
turkey3 wrote:
Yes!Yet another spam-like post of this kind by you.
That's not really spam. It's saying that ProgramCAT's post is true.(It is by the way.)
It's just that I've seen at least 12 very similar posts by turkey3 on other such threads, 'agreeing' to posts but not contributing any information.
Offline
Infinite Loop:
forever go to [mouse-pointer v] endConditional Loop:
repeat until <(timer) > [10]> go to [mouse-pointer v] endFinite Loop:
repeat [10] go to [mouse-pointer v] end
Last edited by BoltBait (2012-03-16 16:22:07)
Offline