I have used a button which counts as the button is pressed again and again, I want this button to get disabled when it counts till 6. I have used a case structure, which compares the value when it is greater than 6, it gets true value and the case structure should disable the button, but as I run the code the button is disabled already.
Can someone please guide me, where I have done mistake.
Regards,
Ather