It seems I have a new problem.
This line here:
(or (and (member '(1000 . "Test-EG-004") (cdadr (assoc -3 (entget e '("PE_URL")))))
instead of the "Test-EG-004", i am using a variable in which I have previously saved the hyperlink, which is always different.
Somehow then it doesn't work? Can I not use a variable here?
It looks like this:
(or (and (member '(1000 . aks) (cdadr (assoc -3 (entget e '("PE_URL")))))