(Solved) I am trying to make a button mechanic which activates according to the animation

what i am trying to do is that when the toolselector animation is similar to Axeicon

it activates and when it is not same then it deactivates i am able to achieve that but the thing is that when i am trying to check for two different sprites like Axeicon and Pickaxeicon it doesn’t work