Solved
STM32F407VG Led Blink Button Problem
Hello, i'm a new about this embedded systems, i am working with stm32f4 discovery card with HAL Library.
İ looked the GPİO topic and i want to create a program like :
When i clikt the button 3 times red led will open and when i clikc the button 5 times green led will open only.
i create "int count" and i used conditions but couldnt be success about it.
Here is the my code , can anyone help me to show right algorithm?

edit :
Finally it worked :


