Originally Posted by
adammint7
how would I put that into an if statement for names, I have not used that methodology before
What have you tried? Which part of that are you stuck on? Iterating over names? Using an if statement? Something else? You can't just keep asking general questions, as they're actually much harder to answer than specific questions about code.
Post an
SSCCE (not your entire program) that demonstrates what you've tried and where you're stuck and ask a specific question, and we'll go from there.