I keep using (alien) code like this
Case When (variable & (2|4|8|16)>0) Then ... WHEN (variable & (1|32)>0 Then ... ... End
I understand what is happening here, checking to see if there is 1 or 0 in 2 ^ 1, 2 ^ 2, 2 ^ 3, or 2 ^ 4 places of the variable variable . It is right? In any case, I still do not understand why this expression is written as it is. I cannot find documentation for this logic mainly because I don’t know what to actually name it.
source share