Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
Getting Loopy
Old
bloredo
Junior Member
 
Status: Offline
Posts: 10
Join Date: Dec 2017
Unhappy Getting Loopy - 12-20-2017, 12:57 PM

Lab 2 at first seemed to be pretty easy. I know with working with our coders at work we use a lot of loop statements. However I was stuck one little but huge part. My program was looping if the user selected Yes (which is what I wanted). However once the user selected No, it still looped! It was quite frustrating. I ran over the code 100 times and I knew I was missing something... That something was my While statement was set to True, basically true=false!

I felt dumb because I should of caught that in the beginning. Well going forward I will make sure my functions have a false statement to compare to so its not an infinite loop!
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.