P8_12 is the only pin that works

The following code responds with “On” and “Off” only when the port is P8_12 or P8_11. With P8_7 or P8_9, it responds with “On” and never says “Off”.

Why?