Ach so, du willst sowas ?
Hatte das unten überlesen.

Code:
If Pinb.0=1 AND Pinb.1=1 then
 'tu was
endif
Gruß
Christopher