That condition is always true (if it's 'C' it's not 'c', and if it's 'c' it's not 'C'). You probably want &&.

Note: “this is not working” is not a good error report. You neglected to mention what you expected to happen and what was actually happening. This is an easily-recognizable problem, so I guessed at what was going on, but in the future, more precise error reports will make finding problems much easier.