IF Statement on Button to make it complete and “uncomplete” based on user action / click

IF Statement on Button to make it complete and “uncomplete” based on user action / click