Question about checking a bool value through a passed parameter of another function help?

So I was trying to figure out how to do this thing where you check a boolean value through a function that returns a boolean value, I’ve seen it before. But this is not working and I’m pretty sure (well obviously) I’m doing it incorrectly, does anyone know how?

Solved. Had to simplify what I was doing a little bit.