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?
Multiple conditions in an if statement?
Re: Multiple conditions in an if statement?
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).
-
- Posts: 5
- Joined: Wed May 02, 2012 3:49 am
Re: Multiple conditions in an if statement?
Ok, thanks for your VERY quick reply, much appreciated, i tried doing a bit of research but i couldn't find anything on it :\