Hey, I'm just wondering if it's possible to run an if statement through a class? The thing is, I wanna store users details and then when you search for a user, i.e "Phill" it returns all the information on that user. I'm using something like:
c1.GetName();
So something like:
for(int i=0;(i<100); i++)
{
if(c[i].GetName() = "Phil")
{
// do this
// do that
}else{
// do this
// don't do that
}
Is it possible or are there any other ways? Thank you.