Will this if statement be correctly evaluated? Or is it incorrect....it doesn't seem to work but it may be something else.
Thanks
Code:if ((strcmp (procName,"firstname") != 0) || (strcmp (procName,"surname") != 0) || (strcmp (procName,"middlename") != 0))



LinkBack URL
About LinkBacks



quzah is right. When you say, "...isn't blah or blah or blah..." you're really using the AND symbol because all of the conditions have to be met.