Does this help?
mvg,
S
(SETQ NAMECHECK T)
(while
(setq layline (read-line layfile)); as long as there's still another line in the file
(setq laynameDutch (substr layline 1 (vl-string-search ";" layline))
laynameEnglish (substr layline (+ (vl-string-search ";" layline) 2))
); end setq
(if (tblsearch "layer" laynameDutch); if the layer exists
(progn
(IF NAMECHECK
(PROGN
(prompt "\n Layer Name is in ENGLISH")
(SETQ NAMECHECK NIL)
)
)
(setq LR_cont (entget (tblobjname "LAYER" laynameDutch))
LR_cont (subst (cons 2 laynameEnglish) (assoc 2 LR_cont) LR_cont)
)
(entmod LR_cont)
)
;;; THESE BRACKETS WERE MISSING ;;
)
)