@Jeff_MottJun 14.2005 — #The single pipe is the bitwise OR operator, combined with the shorthand assignment notation. So that expression is equivalent to
@UltimaterJun 15.2005 — #I remember when I encounter the operator myself and it took me a while to understand it. <i> </i><script type="text/javascript"> var temp1=544 temp1|=213 alert(temp1)//757 //Why the computer spits-out 757: //1[color=royalblue]0[/color]0010[color=royalblue]0[/color]0[color=royalblue]0[/color]0 which is 544 //0[color=royalblue]0[/color]1101[color=royalblue]0[/color]1[color=royalblue]0[/color]1 which is 213 //----------------------- //1[color=royalblue]0[/color]1111[color=royalblue]0[/color]1[color=royalblue]0[/color]1 which is 757
@UltimaterJun 15.2005 — #Might as well teach you the bitwise AND operator now <i> </i><script type="text/javascript"> var temp1=818 temp1&=503 alert(temp1)//306 //Why the computer spits-out 306: //1[color=royalblue]1[/color]00[color=royalblue]1[/color][color=royalblue]1[/color]00[color=royalblue]1[/color]0 which is 818 //0[color=royalblue]1[/color]11[color=royalblue]1[/color][color=royalblue]1[/color]01[color=royalblue]1[/color]1 which is 503 //----------------------- //0[color=royalblue]1[/color]00[color=royalblue]1[/color][color=royalblue]1[/color]00[color=royalblue]1[/color]0 which is 306