For/fr: Difference between revisions
< For
Tried to translate the conditional template |
m Typos |
||
| Line 7: | Line 7: | ||
|statement_end_desc=Peut être une instruction simple, un ensemble d'instruction ou l'instruction vide. | |statement_end_desc=Peut être une instruction simple, un ensemble d'instruction ou l'instruction vide. | ||
|p1_name=initialiseur|p1_desc=Exécuté une fois juste avant l'évaluation de '''condition'''. | |p1_name=initialiseur|p1_desc=Exécuté une fois juste avant l'évaluation de '''condition'''. | ||
|p2_name=condition|p2_desc=Si '''condition''' est vraie alors '''boucle''' est exécutée. | |p2_name=condition|p2_desc=Si '''condition''' est vraie, alors '''boucle''' est exécutée. | ||
|p3_name=incrément|p3_desc=Exécuté juste après '''boucle''' puis retour sur '''condition'''. | |p3_name=incrément|p3_desc=Exécuté juste après '''boucle''', puis retour sur '''condition'''. | ||
|constants | |constants | ||
|spec | |spec | ||
Revision as of 03:59, 4 December 2007
| LSL Portail Francophone | LSL Portail Anglophone | Fonctions | Évènements | Types | Operateurs | Constantes | Contrôle d'exécution | Bibliothèque | Tutoriels |
for( initialiseur; condition; incrément ) boucle
| ||||||||||||||||||||
Spécification
| ||||||||||||||||||||
Exemples// instruction unique
integer a = 0;
integer b = 10;
for (; a < b; ++a)
llOwnerSay((string) a);
// ensemble d'instructions
integer a = 0;
integer b = 10;
for (; a < b; ++a)
{
llOwnerSay((string) a);
llOwnerSay((string) a);
}
// instruction vide integer a = 0; integer b = 10; for(; a < b; llOwnerSay((string) (a++))); | ||||||||||||||||||||
NotesUn for boucle est identique à un while boucle qui suit le schéma : initialiseur;
while (condition);
{
boucle;
incrément;
}
|
For