02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

SELECT CASE<br />

Begins CASE construct.<br />

Syntax<br />

[construct-name :] SELECT CASE (case-expr)<br />

construct-name is the name given to the CASE construct.<br />

case-expr is a scalar expression of type integer, character, or logical.<br />

Description<br />

<strong>HP</strong> <strong>Fortran</strong> statements<br />

SELECT CASE<br />

The SELECT CASE statement, the first statement of a CASE construct, causes case-expr to be<br />

evaluated, resulting in the case index. The CASE construct uses the case index to determine<br />

which of its statement blocks to execute.<br />

If construct-name is specified, it must also appear in the END SELECT statement.<br />

Examples<br />

For an example of the SELECT CASE statement, see “CASE” on page 259.<br />

Related statements<br />

CASE and END (construct)<br />

Related concepts<br />

For information about the CASE construct, see “CASE construct” on page 105.<br />

Chapter 10 425

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

Saved successfully!

Ooh no, something went wrong!