Simscript III/Dictionnaire des instructions/WITH

Un livre de Wikilivres.

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 ...