Check if user is a logged in member then check if boolean = true on click

Hi Ajit, thank you for your help. The button isn’t in a repeater. If I removed that part of your code, would it still work?