Getting a bad argument type: consp error and I'm not sure why.
it was working yesterday.
Giving me the error on the line
(defun doname (len / c cell namedata)
(_> (setq c 0)
(_> (setq cell (strcat "E" @excel_row))
(_> (setq cell (string_ cell))
(_> (repeat len
((_> (setq namedata (getname))
((_> (putcell cell namedata)
((_> (setq cell (string_ cell))
((_> (setq c (1+ c))
((_> );repeat
(_> (if (= c len)(doitem len))
(_> ;;goto item subfunction
(_> );defun doname
DONAME
Command: (doname len)
; error: bad argument type: consp
Command: !len
78
Command: (if (= c len)(doitem len))
....Finished!
....1 items duplicate
not sure why it's happening