If looking at an object and object name is X then do Y

Hi, I tried it but it looks like the branch conditionality doesn’t work for me.
Basically, what I am trying to do is to to initiate an action when a player is looking at an object and a touch button is pressed. It’s either display some info on screen or make the camera move to a different location.
I have attached a screenshot. Can you see anything that may be causing the problem here?
I have added Portal1, Portal2 tags to two cylinders in the scene that are set to be invisible in-game.

Thanks very much.