Welshman
Computer
- Dec 16, 2002
- 28
Hi gang
I am trying to write a simple lisp program that will check the system variable LOGINNAME and if the returned variable is a certain user then to write and ALERT command to screen.
I think something like this (although I do not know anything about lisp), but its not working:
(defun C:message ()
(setvar "cmdecho" 0)
(if (= loginname “DAVID” )
(ALERT"HELLO DAVID"
)
(princ)
)
There is a point to this program and any help is apreciated.
Regards
The Welshman
I am trying to write a simple lisp program that will check the system variable LOGINNAME and if the returned variable is a certain user then to write and ALERT command to screen.
I think something like this (although I do not know anything about lisp), but its not working:
(defun C:message ()
(setvar "cmdecho" 0)
(if (= loginname “DAVID” )
(ALERT"HELLO DAVID"
)
(princ)
)
There is a point to this program and any help is apreciated.
Regards
The Welshman