Can't I use |=?

Why does the following code cause an error ?

value -<0
value |= 0x40

Squirrel doesn’t support ALL the c operators there; you have to do value = value | 0x40.

I filed a bug about that, I miss &=, ^= and |= too…

ok, will try that, thanks.

I believe the Squirrel Cheat Sheet that @smittytone made has all of the operators supported in Squirrel.

I did look at that before posting. I just figured it was missed. I though it has to be there who would not have that. Looks like i was wrong.

might I trouble you for what the Squirrel version is to clear a bit ?

Got it, its value = value &~ 0x40

strange stuff :wink: