-
-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update while.adoc #821
base: master
Are you sure you want to change the base?
Update while.adoc #821
Conversation
None of the While or While Loop explanations or tutorials make it entirely clear how the loop ends or what happens when it does end, and I've puzzled over this for some time. Also, some comparison is needed between If, While, Do While, and For to clarify what each is best for and when best to use them. Also, NONE of these While explanations or tutorials mentions that you can use <break> to get out of them early. An example using Break would be good on this page, too, such as using a sensor reading to interrupt the While before it's finished. Let's say, while a switch is open, keep running a motor until the switch closes. Can do this with If statement, how is while better?
that you can use Break to get out of them early. |
Sorry, clicked wrong control. |
|
I tried to sign the CLA but the link doesn't work. |
I have tried to sign the CLA. The link goes to https://cla-assistant.io/arduino/reference-en?pullRequest=821 but the field is locked and I can't enter data. There are no other controls on the page. |
@@ -69,7 +70,7 @@ while (var < 200) { | |||
=== See also | |||
|
|||
[role="language"] | |||
|
|||
https://www.arduino.cc/reference/en/language/structure/control-structure/break/[Break^] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.arduino.cc/reference/en/language/structure/control-structure/break/[Break^] | |
* #LANGUAGE# link:../break[break] | |
- Make clickable relative link
- Follow standard style conventions for reference links
None of the While or While Loop explanations or tutorials make it entirely clear how the loop ends or what happens when it does end, and I've puzzled over this for some time. Also, some comparison is needed between If, While, Do While, and For to clarify what each is best for and when best to use them.
Also, NONE of these While explanations or tutorials mentions that you can use to get out of them early. An example using Break would be good on this page, too, such as using a sensor reading to interrupt the While before it's finished. Let's say, while a switch is open, keep running a motor until the switch closes. Can do this with If statement, how is while better?
There is one While Loop tutorial but it's far more complicated than necessary for a basic explanation.