How do I add 3 or more text boxes equal each other?

Hello, I need help with my Lottery app, How would I add more than one text box to equal the same value of the Text Box so many amount of times without adding a bunch of code.

Put your relevant textbox components in a list.

You want to check if the .text value of every textbox in that list equals the .text value in slot 1.

This needs a loop and a variable for matched so far (initial true) that will go false when a mismatch is found.