What is the equivalent VB code for

CHECK:
S=INP(&H3FD)
T = S AND 32
IF T=0 then goto CHECK

I'm not sure what the "T=S AND 32" means.

I am pretty sure that the first line is
S = MSComm1.Input
However, I don' understand what the statmenet "AND" means in this context

Test with Asc($S) and 32

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.