Ampersand. &&


My mistake was that I did not put the word 'javascript:' in front of the script.



mybutton.attributes.add ( "javascript:if ((x=1) && (y=2)) { (p=4) } else {}")