@SLW210Just a comment I use my Multi toggles.lsp to write the dcl code. so need about 3 lines of code to do all the dcl toggle.
The answer is returned as a list of (0 1 1 0 1 1 0) etc meaning the toggle is on or off then compare that to your variables as an example (nth 0 ans) = 1 so search = (nth 0 lst) else is nil.
I also use the RLX convert dcl to lisp.lsp so just edit the multi toggles.lsp to write to a file it saves a lot of typing, then use the RLX convert and it makes the code for insertion into your lisp. Saves typo's.
.Multi toggles.lsp