Comparing a Single Variable to Many

Hi everyone, I'm a beginner to programming in general and I'm wondering how I can compare multiple variables (like 50 in an array) to a single variable until two variables are the same. When the two variables are equal, I want to execute a specific block of code. How would I do something like this?
A for loop and a comparison would be your best bet.
Topic archived. No new replies allowed.