Not sure what you try to achieve, but your current code just translate your condition to a bool variable. There is no action associated.
You need a condition that defines if there is an enemy in proximity, and based on that the angle it changed accordingly.