Problem with booleans

As I said in the first post, AND node doesn’t work. This is what happens with AND node:

I’ve tried AND, EQUAl, NOT EQUAL, OR and a NOT between them and the branch, I can’t get it to work.
I also tried out idea with two branches, but it didn’t work either.