$execute unless score .base_value const matches ..9999 if score .og_value const matches 0.. run data modify entity @s Item.components.minecraft:attribute_modifiers[{id:"$(id)"}].display set value {type:"override",value:[{"color":"dark_green","italic":false,"text":" $(display_value) Attack Speed "},{"color":"blue","italic":false,"text":"[+$(og_value)%]"}]}
$execute unless score .base_value const matches ..9999 if score .og_value const matches ..-1 run data modify entity @s Item.components.minecraft:attribute_modifiers[{id:"$(id)"}].display set value {type:"override",value:[{"color":"dark_green","italic":false,"text":" $(display_value) Attack Speed "},{"color":"blue","italic":false,"text":"[$(og_value)%]"}]}
$execute if score .base_value const matches ..9999 if score .og_value const matches 0.. run data modify entity @s Item.components.minecraft:attribute_modifiers[{id:"$(id)"}].display set value {type:"override",value:[{"color":"dark_green","italic":false,"text":" $(display_value) Attack Speed "},{"color":"blue","italic":false,"text":"[+$(og_value)%]"}]}
$execute if score .base_value const matches ..9999 if score .og_value const matches ..-1 run data modify entity @s Item.components.minecraft:attribute_modifiers[{id:"$(id)"}].display set value {type:"override",value:[{"color":"dark_green","italic":false,"text":" $(display_value) Attack Speed "},{"color":"blue","italic":false,"text":"[$(og_value)%]"}]}