High going pulse

Yes that’s right Steve it worked like an ‘if’ statement in that the code in the curly brackets was executed only if the pin was High and state was Low. Yes I agree it was remarkable.

But now it is working again when I added the if statement which is probably how it should have been in the first place.