# Switch case

**URL:** <https://forum.kirupa.com/t/switch-case/180322>\
**Category:** Uncategorized\
**Created:** [February 27, 2006, 7:43pm UTC](https://forum.kirupa.com/t/switch-case/180322 "2006-02-27T19:43:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnLBW](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@JohnLBW](https://forum.kirupa.com/u/JohnLBW)\
**Post date:** [February 27, 2006, 7:43pm UTC](https://forum.kirupa.com/t/switch-case/180322/1 "2006-02-27T19:43:05Z")

</div>

can you use ranges in a switch statement

eg,

case 1 to 5:  
case 20 to 30:

or even

case 1 or 2:

cheers

John
