I have to compare a string value to about thirty possibilities. On way would be a long IF OR combination, something like this:
If ((!strcmp(fielda,"AAA") || (!strcmp(fielda,"BBB") || (!strcmp(fielda,"CCC") ..........).
Is there a slicker way?
If ((!strcmp(fielda,"AAA") || (!strcmp(fielda,"BBB") || (!strcmp(fielda,"CCC") ..........).
Is there a slicker way?