Thankyou for the help. I had tried that combination of SEROUT/SERIN but it seems that my original IF-THEN statement was the problem here.
IF B0 = B1 or B0 = B2 THEN LED2
IF (B0 = B1) OR (B0 = B2) THEN LED2

can give you good result.

Great to know it's working for you now !