« Simscript III/Dictionnaire des instructions/WITH » : différence entre les versions
Contenu supprimé Contenu ajouté
Aucun résumé des modifications |
m Robot : ajoute Catégorie:Simscript III (livre) |
||
Ligne 25 : | Ligne 25 : | ||
</source> |
</source> |
||
[[Catégorie:Simscript III (livre)]] |
Version du 10 février 2009 à 22:22
with est utilisée pour contrôler l’exécution d’une boucle (commandée par un énoncé for, while, until ou list attributs of each). C’est un proche parent d’unless.
Syntaxe : |
|
Exemples :
for i = 1 to n with x(i) > 0 ...
for each Train in Ligne(1) with Vitesse(Train) <= 25.0 do ...
while i < max with y(i) > 0 and y(i) + z(i) < 2 do ...