&LAYER(obj)
Accesses the layer number the specified object is on to a receiving variable or GRIP statement. This EDA is READ/WRITE which means that the layer of an object can be extracted and/or edited. The most obvious use for &LAYER is to change the layer of a specified object.
Read/Write - Number - [1..256]