php and jquery cookie mixture?
<p>hey guys,
i'm confused,
i have the following jquery script in my header:</p>

<pre><code>forceAnim: &lt;?php echo ($iphone || is_singular()) ? 0 : 1; ?&gt;
</code></pre>

<p>which meanst, that either on the iphone or on a singular-type page forceAnim is 0.
However i want to include an additional query if a jquery cookie is saved.</p>

<p>if the jquery.cookie exists (and equals true) OR it's viewed on the iphone OR its a singular type post forceAnim should be true.</p>

<p>i have just no idea how to mix php with jquery in that case. to query if the jquery.cookie returns true i can just use: </p>

<pre><code>if($.cookie('animate') == 'true'){
   //yes the cookie returns true.
}
</code></pre>

<p>any idea how i can query all three things?
thank you for your help.</p>
