I am going to assume your classifications are strings. As such, you can use strcmp() or any of its related functions, as such:
Alternatively, you might be interested in a switch statement:
It sounds like your use might be a little more involved though, such as being a structure or something. Both of the above would still apply. Just use strcmp(garment.color,'Red') or switch garment.texture, whatever fits your needs.