All Questions
Tagged with conditionals arguments
2 questions
0
votes
2
answers
42
views
Checking optional function argument
If I have an optional function argument, how can I determine if name has been supplied. And if it has been supplied, how can I test its validity (not nil or not empty string).
(defun myfunc (&...
7
votes
2
answers
177
views
Is there a way to only accept certain arguments to a function?
I want to write a function where the only two valid values for the input argument are "dag" or "rulegraph". Is there a way to specify that only these two arguments are accepted this in the elisp ...