Newsgroups: comp.lang.lisp
From: Pascal Bourguignon <p...@informatimago.com>
Date: Tue, 17 Oct 2006 04:12:16 +0200
Local: Mon, Oct 16 2006 10:12 pm
Subject: Re: trouble learning LISP
"dlarkin" <dlark...@mail.gatech.edu> writes: No it cannot. > Can an IF statement in lisp execute multiple expressions if it tests false. > For example: This is meaningless in Common Lisp. > (if (null expression) nil ;;if nil then skip the else part If you want to program in lisp, why don't you just read some lisp If you want to do expression1 and expression2 only when expression is (when expression If you don't want to do expression1 and expressions unless expression (unless (null expression) Also, if you want the two branches of a IF, you have the same problem (if condition But most often, you don't need to use progn, because you'll be using a -- "This statement is false." In Lisp: (defun Q () (eq nil (Q))) You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||