How To Stop A Loop
- Forums
- Linux
- How To Stop A Loop
This Page Contains information about How To Stop A Loop By Webune in category Linux with 0 Replies. [3238], Last Updated: Mon Jun 24, 2024
Webune
Wed Sep 30, 2009
0 Comments
473 Visits
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