The | (pipe symbol) is the bitwise 'OR' operator. The |= is just a shortcut like += is.

x += 2; // Same as x = x + 2;

x |= 2; // Same as x = x | 2;

As far as bitwise operators go, there are also the & (bitwise AND) and ^ (bitwise XOR), although Im not sure if C-Script supports them all.

If you want more info, let me know. Im sure I can dig up a link that explains them better.


Never argue with an idiot. They drag you down to their level then beat you with experience