I want to know what's wrong with my coding

learn to use "</>" to post code

that's not much different from what you originally posted. and as already explained, the logic is flawed.

it would be more helpful if you explained in words what you want the code to do. seems like you want it to flash an LED on/off every 6 seconds when a button is pressed