<br><br><div><span class="gmail_quote">On 04/12/2007, <b class="gmail_sendername">Martin Ahnelöv</b> &lt;<a href="mailto:operagasten@gmail.com">operagasten@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>The syntax should look like this (I&#39;ve made some notes):<br><br>// if followed an expression in brackets. if there are mutliple, use<br>// &quot;and&quot; followed by a new expression between brackets (you can also use
<br>// &quot;or&quot; instead of &quot;and&quot;.<br>// The curly brackets come after the whole if-statement.<br>// No &quot;then&quot;.<br>if (msg.isButtonDown()) and (msg.my_keynumber = 65) {</blockquote><div><br><br>I&#39;m sorry but I really don&#39;t think you can do that. I don&#39;t think I ever saw &quot;and&quot; used in a ChucK context and I can&#39;t get this to run;
<br><br>if ( true and true ) &lt;&lt;&lt;&quot;poof&quot;&gt;&gt;&gt;;<br><br>or this;<br>if ( true) and (true ) &lt;&lt;&lt;&quot;poof&quot;&gt;&gt;&gt;;<br><br>While this works;<br>&nbsp;<br></div>if ( true &amp;&amp; true ) &lt;&lt;&lt;&quot;poof&quot;&gt;&gt;&gt;;
<br>
<br>If I&#39;m wrong, could you give a example along those lines that uses &quot;and&quot; and will run?<br><br>Yours,<br>Kas.<br>
</div>