I recently asked for an explanation on Logand. I recieved an EXCELLENT response to that but now I do have another question. This a very detailed explanation of how binary works. The problem is that I already understood how binary works. I think I understand the logand function now after studying the example provided and reading a few other google threads on the subject. Now I'd just like confirmation so that I can be sure. Assuming that I DO understand it, in a practical setting I would pass LOGAND 2 seperate integers. The first would be the "Current" setting. And the second would be what the maximum possible setting would be if the bit I'm interested in is OFF (this is the "Mask"). i.e. if I'm trying to figure out if a layer is frozen, I'm only intersted in bit #1 of group #70. the bits are 1-If set, layer is frozen; 2-If set, layer is frozen by default in all new viewports; 4-if set, layer is locked. if all bits are set (cdr (assoc 70 (tblsearch "Layer1"))) wil return 7. If all bits EXCEPT bit #1 are set then it will return 6. So if (logand (cdr (assoc 70 (tblsearch "Layer1"))) 6) returns 0 then Bit #1 is OFF. If it returns 1 then the bit is ON. And if I were trying to figure out if the layer was locked I would use (logand(cdr (assoc 70 (tblsearch "Layer1"))) 3). If it returns 4 then the layer is locked. If it returns 0 then the layer us NOT locked. Is this correct? Thanks.