View Single Post
Old 01-20-2008, 12:55 AM   #5 (permalink)
xenon
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

Quote:
Originally Posted by sarmenhb View Post
but if i place this exit(); between the curleys then the loop will end.
exit breaks the execution of the entire script, not just the loop. So yeah, your "implementation" of an infinite loop is so much clever (exit can be put anywhere). But what's the point of it? infinite loop = no script (aka you can't actually have a working script and also an infinite loop at the same time). So why even bother trying to create an infinite loop?
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote