Hi Keith,
Looks like a classic IF THEN ELSE to me.
Code:
TRISB = %00001111    ' 4 upper as outputs 4 lower as inputs
IF  PortB.0 = 1 THEN ' if true then goto next statement
PortB.4 = 1          ' turn on this port 
ELSE                 ' goes to here if false
PortB.4 = 0          ' Turns this port off
ENDIF                ' ends the if then test for true / false and allows code to continue
make sure to use resistors pulling down if you close switches to activate or pulling up if you open switches to activate.