<br><br><div><span class="gmail_quote">On 04/12/2007, <b class="gmail_sendername">Martin Ahnelöv</b> <<a href="mailto:operagasten@gmail.com">operagasten@gmail.com</a>> 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've made some notes):<br><br>// if followed an expression in brackets. if there are mutliple, use<br>// "and" followed by a new expression between brackets (you can also use
<br>// "or" instead of "and".<br>// The curly brackets come after the whole if-statement.<br>// No "then".<br>if (msg.isButtonDown()) and (msg.my_keynumber = 65) {</blockquote><div><br><br>I'm sorry but I really don't think you can do that. I don't think I ever saw "and" used in a ChucK context and I can't get this to run;
<br><br>if ( true and true ) <<<"poof">>>;<br><br>or this;<br>if ( true) and (true ) <<<"poof">>>;<br><br>While this works;<br> <br></div>if ( true && true ) <<<"poof">>>;
<br>
<br>If I'm wrong, could you give a example along those lines that uses "and" and will run?<br><br>Yours,<br>Kas.<br>
</div>