Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Language/Structure/Control Structure/while.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ subCategories: [ "Control Structure" ]
[float]
=== Description
[%hardbreaks]
A `while` loop will loop continuously, and infinitely, until the expression inside the parenthesis, () becomes false. Something must change the tested variable, or the while loop will never exit. This could be in your code, such as an incremented variable, or an external condition, such as testing a sensor.
Une structure `while` boucle de manière continue et infinie jusqu'à ce que l'expression entre parenthèses, () devienne fausse. Quelque chose dans la boucle doit modifier la variable testée, sinon la boucle while ne s'arrêtera jamais. Cela peut être dans votre code, par exemple une variable incrémentée, ou une condition externe, telle que le test d'un capteur.

[float]
=== Syntax
=== Syntaxe
[source,arduino]
----
while (condition) {
Expand All @@ -31,8 +31,8 @@ while (condition) {


[float]
=== Parameters
`condition`: a boolean expression that evaluates to `true` or `false`.
=== Paramètres
`condition`: une expression booléenn qui sera évaluée à `true` ou `false`.

--
// OVERVIEW SECTION ENDS
Expand All @@ -45,7 +45,7 @@ while (condition) {
--

[float]
=== Example Code
=== Exemple de code

[source,arduino]
----
Expand All @@ -66,12 +66,12 @@ while (var < 200) {
--

[float]
=== See also
=== Voir également

[role="language"]

[role="example"]
* #EXAMPLE# https://arduino.cc/en/Tutorial/WhileLoop[While Loop^]
* #EXEMPLE# https://arduino.cc/en/Tutorial/WhileLoop[While Loop^]

--
// SEE ALSO SECTION ENDS