Home
Search
What's New
Index
Books
Links
Q & A
Newsletter
Banners
Feedback
Tip Jar
C# Helper...
MSDN Visual Basic Community
Title
Switch
Keywords
quick question, quiz, Switch
Categories
Tips and Tricks
i_mod_10 = i Mod 10 j = Switch(i_mod_10 <= 2, 2, i_mod_10 <= 5, 5, i_mod_10 <= _ 8, 8, True, 9)
What does this code do?
Can you reformat this code so it's easier to understand?
Can you think of an alternative approach that's also easy to understand?
Which version is better?
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc. All rights reserved.
Updated