30.01.2017, 09:53
I was going through an old script and I've used '&' within an If statement. I don't remember what this actually represents. I understand that '&&' is used to check if multiple statements are true, but I don't get what '&' does.
The line of code in particular is this:
Also how does this differ from:
The line of code in particular is this:
Код:
if(newkeys & KEY_SECONDARY_ATTACK)
Код:
if(newkeys == KEY_SECONDARY_ATTACK)