Hello aherrera,
Ok suppose you are using PortB as follows
'PortB.0 = switch 1
'PortB.1 = switch 2
'PortB.2 = switch 3
'PortB.3 = switch 4
'PortB.4 = switch 5
and you are doing If PortB.0 = 1 then . . .
the port has a binary value when you push a switch, port B.0 = 1, portB.1 = 2, both = 3
so you could use a select case statement or a lookup table to direct your code flow.