(let ((x 10) (y 10) (z 10))<br> (= x y z))<br><br>is true Common Lisp, but the PS equivalent...<br><br>var x = 10;<br>var y = 10;<br>var z = 10;<br>x == y == z;<br><br>... is false. The left operand of the second == is actually x==y, which evalutes to true, and true==z of course is false. An equivalent in CL might be:<br>
<br>(equal (equal x y) z)<br><br>Perverse side note: the above example doesn't work if you assign 1 to the variables because in JS, the following is true:<br><br>1 == true<br><br>I didn't know this. JS still manages to shock me sometimes.<br>
<br>Daniel<br>