02-23-2023, 10:35 PM
2
I know that in C# it can be done with the following code
for (int index = 0; index < 64; ++index)
ClbItemFlag.SetItemChecked(index, (flag & 1L << index) > 0L);
But I want to do it in lua and I don't understand exactly how this code works... Obviously This: "(flag & 1L << index) >" 0L Is returning a boolean, but I don't understand why it returns a bool...
P.S: And yes, if anyone asks, I don't know exactly what I'm doing...

