jet:working_with_loops
Differences
This shows you the differences between two versions of the page.
jet:working_with_loops [2016/01/13 01:10] – created leo | jet:working_with_loops [2016/01/13 01:15] (current) – leo | ||
---|---|---|---|
Line 2: | Line 2: | ||
=== while === | === while === | ||
+ | < | ||
while (condition) { | while (condition) { | ||
// code | // code | ||
} | } | ||
+ | </ | ||
=== do ... while === | === do ... while === | ||
< | < | ||
Line 12: | Line 12: | ||
// code | // code | ||
} while (condition); | } while (condition); | ||
- | < | + | </code> |
Sera exécuté au moins une fois, toujours. | Sera exécuté au moins une fois, toujours. | ||
=== for === | === for === | ||
Line 24: | Line 24: | ||
// code | // code | ||
} | } | ||
+ | </ | ||
=== break=== | === break=== | ||
Fait sortir d'une boucle. | Fait sortir d'une boucle. | ||
=== continue=== | === continue=== | ||
On arrête l' | On arrête l' |
jet/working_with_loops.1452643852.txt.gz · Last modified: 2016/01/13 01:10 by leo