Hi Nikos

I too am happy to be a member of this forum!!!

You could alias each pin into a word variable.
Then simply check the value of the whole word

If w0 > 1 then
etc etc
endif

or

while w0 <> 0
wend

I guess there are lots of other ways but this came into my mind first.

Hope this Helps

Duncan