if statements are running when they are not suppose to be

I am creating a novel game in c#. The problem is that I have two if statements, both do seperate things. I have two buttons, a yes and a no button.170662-help1.jpg The buttons both trigger a sperate bool, a response 1 bool and a response 2 bool. I then have an if statement for each one. Such as:
The main problem is that both if statements run even when only one should. Anyone know any fixes.


You might have figured it out by now, but your syntax is not entirely correct.

Instead of ResponseOnePressed = true, you should use either

if (ResponseOnePressed == true)


if (ResponseOnePressed)