How To Stop A Loop

RegisterLogin
How To Stop A Loop
Post Description: How To Stop A Loop
Tags: How, To, Stop, A, Loop
This Post Was Posted On Sep 30, 2009 By Webune #2462
the purpose of this short tutorial is to show you how you can stop a loop in linux.

there are times when a loop will keep on going till infinity. which means, it will never stop and your script will be compromise. so sometimes, as programmers we must take steps that our programs dont crash. one way to stop a loop from going on to infinity is to use break.

so when you are creating your script, be sure to add a condition that if the loop goes on forever, you can use "break" to stop the loop
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Sun Dec 18, 2011 8:11 pm
Powered by: Webune Forums V3