Difference between revisions of "For/fr"
< For
Jump to navigation
Jump to search
m (typo) |
(Tried to translate the conditional template) |
||
Line 1: | Line 1: | ||
{{Multi-lang}} | {{Multi-lang}} | ||
{{LSL_Conditional | {{LSL_Conditional/fr | ||
|statement=for | |statement=for | ||
|statement_header | |statement_header |
Revision as of 02:50, 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