Move wall between two points, but check to see if it can move

Hey everyone, I have a question on how to move a wall between two locations and check to see if it can move. For example, if wall1 is in location A, tthen wall2 can move, but if wall1 is location B, then wall2 cannot move. I am making an ever changing maze and this is my first hurdle I am trying to overcome. Thank you in advance.

I’d use the the BoxTraceByChannel or BoxTraceForObjects nodes. If I understand well, these do exactly what you need.