My .c programme gives an object a 'name' when its created. I need to be able to excute different tasks depending on that name. I very new to this and have tried a couple of ways with no success. Here is what I had come up with..
if (name == "james"){
//Do a bunch of stuff
}
if (name == "tom"){
//Do a bunch of stuff
}
This was not successful. Is there a way so that if the 'name' is one thing it wont execute the others?
Thankyou so much for any help