C++ if statement with || : <p>I have to print an error if the gender entered is not M/m/F/f/X/x but my if statement always returns true</p>

<pre><code>cout &lt;&lt; "Please enter the candidate's information "
        "(enter 'X' to exit).";
cout &lt;&lt; endl &lt;&lt; "gender: ";
cin.get(gender);
cin.ignore(1000,'\n');

if (gender != 'M' || gender != 'm' || gender != 'F' ||
    gender != 'f' || gender != 'X' || gender != 'x')
    {
        cout &lt;&lt; "error";
    }
</code></pre>
