Difference between revisions of "While/fr"
< While
Jump to navigation
Jump to search
Forest Klaar (talk | contribs) |
m (Proofread) |
||
Line 1: | Line 1: | ||
{{Multi-lang}} | {{Multi-lang}} | ||
{{LSL_Conditional | {{LSL_Conditional/fr | ||
|statement=while | |statement=while | ||
|statement_header | |statement_header | ||
|statement_desc= | |statement_desc=Chaque instruction peut être l'instruction vide. | ||
|statement_end= | |statement_end=boucle | ||
|statement_end_desc=Peut être une instruction simple, un bloc d'instructions, ou un bloc vide. | |statement_end_desc=Peut être une instruction simple, un bloc d'instructions, ou un bloc vide. | ||
|p1_name=condition|p1_desc=Si la condition est évaluée à true, alors ''' | |p1_name=condition|p1_desc=Si la condition est évaluée à true, alors '''boucle''' est exécuté | ||
|constants | |constants | ||
|spec | |spec | ||
|caveats | |caveats | ||
|examples=<pre>//instruction simple | |examples=<pre>// instruction simple | ||
integer a = 0; | integer a = 0; | ||
integer b = 10; | integer b = 10; | ||
while(a < b) | while(a < b) | ||
llOwnerSay((string)(a++)); | llOwnerSay((string) (a++)); | ||
</pre> | </pre> | ||
<pre>//bloc d'instructions | <pre>// bloc d'instructions | ||
integer a = 0; | integer a = 0; | ||
integer b = 10; | integer b = 10; | ||
while(a < b) | while (a < b) | ||
{ | { | ||
llOwnerSay((string)a); | llOwnerSay((string) a); | ||
++a; | ++a; | ||
} | } | ||
</pre> | </pre> | ||
<pre>//bloc vide | <pre>// bloc vide | ||
integer a = 0; | integer a = 0; | ||
integer b = 10; | integer b = 10; | ||
while(a++ < b); | while (a++ < b) ; | ||
</pre> | </pre> | ||
|helpers | |helpers | ||
Line 39: | Line 39: | ||
|mode | |mode | ||
|deprecated | |deprecated | ||
|cat1=Conditional | |cat1=Conditional/fr | ||
|cat2 | |cat2 | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 05:18, 4 December 2007
LSL Portail Francophone | LSL Portail Anglophone | Fonctions | Évènements | Types | Operateurs | Constantes | Contrôle d'exécution | Bibliothèque | Tutoriels |
while( condition ) boucle
| ||||||||||||||||
Spécification
| ||||||||||||||||
Exemples// instruction simple integer a = 0; integer b = 10; while(a < b) llOwnerSay((string) (a++)); // bloc d'instructions integer a = 0; integer b = 10; while (a < b) { llOwnerSay((string) a); ++a; } // bloc vide integer a = 0; integer b = 10; while (a++ < b) ; | ||||||||||||||||
While