can you test for a range of values in an IF statement

c#

Solution

if((userChoice >= 0 && userChoice <= 32) || userChoice == 99)
{
     // do stuff
}

Problem

I'd like to test a variable ("userChoice") for the numeric values 0-32 and 99

Original source