Page 1 of 1

Multiple conditions in an if statement?

Posted: Mon May 07, 2012 4:39 am
by Super_Stinger
How would one put multiple conditions in an if statement?

in C/C++ you would use && or &

if (x & y & z)
{blah}

how would you do this in lisp?

Re: Multiple conditions in an if statement?

Posted: Mon May 07, 2012 5:03 am
by ramarren
Use the AND macro. This is fairly trivial question, perhaps reading a book like Practical Common Lisp would be faster than waiting for an answer on a forum (relevant chapter).

Re: Multiple conditions in an if statement?

Posted: Mon May 07, 2012 5:05 am
by Super_Stinger
Ok, thanks for your VERY quick reply, much appreciated, i tried doing a bit of research but i couldn't find anything on it :\