Returning from a function
Posted: Wed Nov 24, 2010 1:00 pm
I want the following:
This should work as follows: If bar, then: return result if foobar, and nil if not foobar. If not bar, then return barfoo.
How do I have to modify my code for this?
Code: Select all
(defun foo
(if (bar)
(if (foobar)
(print result)
nil)
(barfoo)
How do I have to modify my code for this?