Testing a symbol against a string ***SOLVED***
Posted: Sun Aug 07, 2016 12:39 am
I've lost a lot of the little LISP-ishness that I managed to acquire over the years. Use it or loose it ....
Anyway, I have a variable/symbol -- let's say:
Down the road, I want to test te symbol name to see if it is equal to - say "dukester". If it is, I want to execute a function - say "emailPerson".
I thought that the following would work:
But it's not working! Maybe there's a more LISP-ish of accomplishing this? TIA ...
Anyway, I have a variable/symbol -- let's say:
Code: Select all
(set 'name "some_name")
I thought that the following would work:
Code: Select all
(if (= name "dukester") (emailPerson))