Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code help
#2
There are two possibilities. (1) actionWake1 was a correct value, and you hit the break right away or (2), it wasn't and the else-branch doesn't ever change actionWake1 at all and only sets wake to the the value that lets the loop continue.

If you walk through the code, you should see that there's no path for the loop to iterate other than once or forever.
Reply


Messages In This Thread
Code help - by YevesDraco - Feb-21-2017, 08:47 PM
RE: Code help - by micseydel - Feb-21-2017, 09:02 PM
RE: Code help - by YevesDraco - Feb-21-2017, 09:15 PM
RE: Code help - by micseydel - Feb-21-2017, 09:17 PM
RE: Code help - by YevesDraco - Feb-22-2017, 09:23 AM
RE: Code help - by wavic - Feb-21-2017, 10:13 PM
RE: Code help - by YevesDraco - Feb-21-2017, 10:55 PM
RE: Code help - by wavic - Feb-21-2017, 10:59 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020