How to know what previous flags compose a final flag?
#2

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...



Messages In This Thread
[No subject] - by nicolasg - 02-23-2023, 10:13 PM
[No subject] - by nicolasg - 02-23-2023, 10:35 PM
[No subject] - by nicolasg - 02-24-2023, 03:36 AM
[No subject] - by Nikolee - 02-27-2023, 02:04 PM
[No subject] - by nicolasg - 02-27-2023, 02:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)