SELECT CASE (case_expr)

CASE (case_selector)

block 1

CASE (case_selector)

block 2

CASE DEFAULT

block n

END SELECT

The case_selector can take one of four forms:

case_value Execute block if case_vaue == case_value

low_value: Execute block if low_value <= case_expr

:high_value Execute block if case <= high_value

low_value:high_value Execute block if low_value <= case_expr <= high_value

or it can be a list of any combination of these forms separated by commas.

'Programming > Fortran' 카테고리의 다른 글

DO Loop (Iterative or Counting Loop) Construct:  (0) 2008.11.24
Logical IF Statement  (0) 2008.11.24
Block IF Construct  (0) 2008.11.24
컴퓨터에 따른 실수의 정밀도(precision)와 범위(range)  (0) 2008.10.31
Pointer and Linked List  (0) 2008.10.01

+ Recent posts