I'm looking for help constructing a lisp SSGET statement that uses the value of a variable as part of the expression. I'm relatively inexperienced using lisp and need some direction.
This is the way the statement works normally, having the "TEST" supplied within the quotes: (setq ss1 (ssget "X" '((0 . "INSERT") (2 . "TEST"))))
I would like to replace the "TEST" with input from a variable value. I've tried it like this: (setq testval "TEST") (setq ss1 (ssget "X" '((0 . "INSERT") (2 . testval)))) This doesn't work. Got any sugestions?
Try this: (setq ss1 (ssget "X" (List(0 . "INSERT") (2 . testval)))) I'm not sure. I'm searching code now, but thought I'd send this and continue to look. Please reply if you find that it works, so I know whether to continue searching.