For/fr: Difference between revisions
< For
m Typos |
m Fixed category |
||
| (One intermediate revision by the same user not shown) | |||
| Line 30: | Line 30: | ||
integer a = 0; | integer a = 0; | ||
integer b = 10; | integer b = 10; | ||
for(; a < b; llOwnerSay((string) (a++))); | for (; a < b; llOwnerSay((string) (a++))); | ||
</pre> | </pre> | ||
|helpers | |helpers | ||
| Line 41: | Line 41: | ||
<pre> | <pre> | ||
initialiseur; | initialiseur; | ||
while (condition) | while (condition) | ||
{ | { | ||
boucle; | boucle; | ||
| Line 49: | Line 49: | ||
|mode | |mode | ||
|deprecated | |deprecated | ||
|cat1=Conditional | |cat1=Conditional/fr | ||
|cat2 | |cat2 | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} | ||
Latest revision as of 05:03, 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