cannot implicitly convert type void to bool

im having this error in my code right here why ?

Animator anim;


if (anim.SetTrigger("Trigger")){
							
									Poop = !Poop;
									ShowCorrect = false;
									ShowIncorrect = false;

							}

i dont know why im getting that kind of error all i want is when my animation on my animator is playing poop will be false and etc

As tanoshimi says, anim.SetTrigger() is void. It just does a job, and doesn’t talk to you about it.

You can’t test against it in an if statement.