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.

<strong>SIMSCRIPT</strong> <strong>II.5</strong> <strong>Programming</strong> <strong>Language</strong><br />

find { the first case<br />

| { variable = [ the ] [ first ] expression } < comma ><br />

} [ , ]<br />

[ if { found | none } [ , ] ]<br />

Must be controlled by a for phrase with a selection clause, but cannot be within a do...loop block.<br />

The option if statement directs control after the control phrase has been completed, depending<br />

upon the outcome of the find.<br />

go [ to ] { 'program label [ ( expression ) ] '<br />

| program label [ ( expression ) ]<br />

| § 'program label' | program label } < or > per expression<br />

}<br />

Transfers control to a labelled statement or one of several labelled statements in a list according to<br />

the integer value of the transfer expression expression.<br />

if logical expression [ , ]<br />

[ statement ] < ><br />

[ else | otherwise ]<br />

[ statement ] < ><br />

{endif | always | regardless }<br />

The if statement directs control to one of two possible groups of statements, depending on the outcome<br />

of logical expression. If statements may be nested to any complexity.<br />

interrupt [ the | this | the above ] process name [ called variable ]<br />

Removes a process from the pending list, computes the "time to go" ( time.a - time.v ) and stores it<br />

in time.a ( process name ) [ or time.a ( variable ) ].<br />

320

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

Saved successfully!

Ooh no, something went wrong!