• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

break and continue statements

 
Terry McKee
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just had a quick question pertaining to break and continue statements. As I understand it, both continue and break statements can be used in loops (do..while, while..., and for statements). The statement break can also be used in the switch statement. Can break and/or continue statements be used in an if..else construct?
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope, you had it right. Also when studying for the exam, know how labels work with break and continue in the loops.
 
Terry McKee
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic