So are you saying its the logic of PBP or my program logic that's not right

I modified the code to add in a new var for LED3 to test for the condition "swset1=1 and swset2=1 then swset5=1 and it didn't work either

Code:
If swset1=1 and swset2=1 then
swset5=1
else 
swset5=0
endif
if swset5=1 then
high led3

endif
When swset1=1 and LED1 is lit, and swset2=1 and LED2 is lit, LED3 fails to light, ergo swset5 can't =1

So any ideas on how to do what I want it to do ??