How do you activate a button when you have a certain amount of an item

im too tired for this

all the reasons repeaters are really inefficient and also alternatives for looping