Conditional branching with more then one line of code
Posted: Fri Apr 10, 2015 10:05 pm
Hi,
As far is I understand the "if" construct of common lisp (and that is not that far
you
can only put ONE expression in each branch like this:
I searched google and hyperpsec but only found examples like that above.
Is it possible to put more than one form (correct terminus???) into each branch of
the "if" (WARNING! WRONG SYNTAX AHEAD! ONLY AN EXAMPLE!):
?
Thanks you very much in advance for any help!
Best regards,
mcc
As far is I understand the "if" construct of common lisp (and that is not that far

can only put ONE expression in each branch like this:
Code: Select all
(if (> x 1 )
(print "true")
(print "false))
Is it possible to put more than one form (correct terminus???) into each branch of
the "if" (WARNING! WRONG SYNTAX AHEAD! ONLY AN EXAMPLE!):
Code: Select all
(if (> x 1 )
((print "true")
(print "also true"))
((print "false)
(print "also false)))
Thanks you very much in advance for any help!
Best regards,
mcc