If statement for all except one : <p>I am more familiar with JS than with PHP. What I would like to have, is a php condition that runs for all pages except one. </p>

<p>I would like below "only not for page ID 2":</p>

<pre><code>function my_action() {
    if( is_page( 2 ) ) {
        // code here
    }
}
</code></pre>

<p>Does PHP cover also cover the <code>!</code> exception rule and if so; where do I put this?</p>
