OK, a real toughie!
What does <code>(2 70 (logior lbits 1))</code> do? Is it setting a list to freeze the specified layer? Except that logically (no pun intended) <code>(8 70 (boole 2 lbits 1))</code> would be thawing the same layer - OK, that's not what they're trying to to
You have a COND encompassing an entire AND statement, is that as an alternative to an IF?
The foreach loop seems to be using the list created earlier to update the layer definition. Still comes down to an (ENTMOD lentl) the same as mine does, though <confused>.
dJE
Look at this one.
...