18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Modelling Concepts<br />

Table 4-1. Illustrative Set Control Statements<br />

Control Statement<br />

Identification Number Sequence<br />

for each j in file 1 3 2 4 6 5<br />

for each j from 4 in file 4 6 5<br />

for each j after 4 in file 6 5<br />

for each j in file in reverse<br />

order<br />

for each j in file after 4 in file<br />

in reverse order<br />

5 6 4 2 3 1<br />

4 2 3 1<br />

for each j in file until j=3 2 3 1<br />

for each j in file in reverse<br />

order until j=3<br />

for each j from 2 in file until<br />

j=6<br />

5 6 4 2<br />

2 4<br />

for each j in file with j ≠ 5 1 3 2 4 6<br />

167

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!