Thread: Getting Loopy
View Single Post
Senior Member
MrMoke's Avatar
Status: Offline
Posts: 501
Join Date: Sep 2007
Location: Austin, Texas
Default 06-23-2015, 08:16 AM

Often it simply requires the use of a single test.

Say, for instance, that you have a method with a single "while loop" that continues based on the value of a Boolean value. Then simply add an "If" that does whatever needs to be done until another condition is satisfied, and uses the "else" to set the Boolean variable to false.

While loop terminated
Reply With Quote