how to implement boolean variable to disable mouse input

in the image you posted, is the talking bool variable connected to branch?