DIP switch?

I am doing an arduino build that has several possible programming scenarios. I want to have 4 different scenarios and an indicator LED to signify which scenario is active. Is this as simple as adding a proto shield and wiring the LEDs and DIP switch to the proto shield, running the proper logic based on the DIP switch value and lighting the proper LED in each logic code block?

if (dip-switch-value == '1')
{
light LED 1;
...
}
if (dip-switch-value == '2')
{
light LED 2;
...
}

The chances of dip minus switch minus value being the same as an ASCII '1' seem pretty remote ;)

Yep, little syntax work needed

Otherwise, just need 8 switches '1' = B00110010 www.asciitable.com

Maybe use Hex instead, and 2 switches if (dip_switch = 0x00){ // 0x00, 0x01, 0x02, 0x03 ...

Thanks

I think your code may look a little more like this:

if (digitalRead(switch1Pin)) {
  digitalWrite(LED1Pin);
}
else if (digitalRead(switch2Pin)) {
  digitalWrite(LED2Pin);
}

reading of the pins was not actually shown anywhere, assumed to have been done earlier ...

Thanks again to everybody.