executing a function when a score is at a certain number

is there a way to detect a score like this? i want to check whenever a score in an objective is at a certain number, then execute the function constantly when it matches the number. i tried 'execute if' but that doesnt seem to work with functions and only basic commands

Continue to help post