What I can't seem to find an answer to: I want to execute multiple expressions within an if-statement branch without defining a separate function. So, when the if-statement below evaluates to true, I want to push the value 10 onto the list x, and in the same breath clear the list y (without defining separate function).
Code: Select all
(set 'x '())
(set 'y '(1 2 3))
(if
(nil?) (push 10 x)) ; how can I also clear y here? (evaluate multiple expressions)