Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation

Case Ranges Contents|Index|Previous|Next
 Case ranges  

You can specify a range of consecutive values in a single case label, like case low ... high:. This has the same effect as the proper number of individual case labels, one for each integer value from low to high, inclusive. This feature is especially useful for ranges of ASCII character codes, as in case ‘A’ ... ‘Z’:.
    Warning:
    Use spaces around the ellipsis (...), for otherwise ranges may be parsed wrong when you used with integer values. For example, use ‘case 1 ... 5:’ rather than ‘case 1...5:’ as the declaration for case labels.

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat