Need help

Right now I am creating a sword that increases the player's strength and speed attributes after a hit streak, when the player takes damage this streak restarts, the problem is that I want to create a tag that prevents the streak from restarting, I am using the command “execute if items” but I can't find a solution. (Version 1.21.6)
Continue to help post