Skip to content

Instantly share code, notes, and snippets.

@mapreal19
Created February 15, 2017 15:54
Show Gist options
  • Save mapreal19/f6f04932471dfa2179a528da66b35af6 to your computer and use it in GitHub Desktop.
Save mapreal19/f6f04932471dfa2179a528da66b35af6 to your computer and use it in GitHub Desktop.
Dim number As Integer = 3
Select Case number
Case 1 To 5
Console.WriteLine("Between 1 and 5, inclusive")
Case 6, 7, 8
Console.WriteLine("Between 6 and 8, inclusive")
Case 9 To 10
Console.WriteLine("Equal to 9 or 10")
Case Else
Console.WriteLine("Not between 1 and 10, inclusive")
End Select
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment