Hi Andrew, You're using a combination of car() and exists() to test the existence of the specified layer in the layout. To me, this looks a bit complicated, it is possible to just use a when() and member() combination. Something like: lppList = list( '("ME1" "drawing") '("text" "drawing") '("ME2" "drawing") ) (("ME1" "drawing") ("text" "drawing") ("ME2" "drawing") ) lpp_lay = "text" "text" lpp_pur = "drawing" "drawing" when( member( list(lpp_lay "text") lppList ) printf("found\n") ) nil when( member( list(lpp_lay lpp_pur) lppList ) printf("found\n") ) found t Is there a particular reason why you use the car() and exists() combination? Thanks in advance. Sjoerd
↧