Quick question about case select

BlitzMax Forums/BlitzMax Programming/Quick question about case select

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Local a% = Rand(1,50)
Select True
	Case InRange(a,1,25)
		Print "1..25"
	Case InRange(a,26,29)
		Print "26..29"
	Case InRange(a,30,50)
		Print "30..50"	
End Select

Function InRange(num%,lo%,hi%)
	If num >= lo And num <= hi Return True
	Return False
End Function