Thank you timotet for your reply.
However, your code, though compiling correctly, doesn't work either.
Both red and green LEDs are on and nothing changes with the button.
Actually, in either your code or mine, the test is not working. The button push is never detected.
This gives me a headache !!!
Is the port really 1.3 for the button ?