die abfrage

if portxy.0 = 0 then

bringt nix. pinstatus abfragen macht man mit

if pinxy.0 = 0 then