Can you execute multiple statements in with a If statement?
Posted
by Jack Null
on Stack Overflow
See other posts from Stack Overflow
or by Jack Null
Published on 2010-05-17T19:49:34Z
Indexed on
2010/05/17
20:00 UTC
Read the original article
Hit count: 151
lisp
This is my function:
(defun MyFunction(input)
(let ((NEWNUM (find input num)))
(if (find input num) //if this
(setq num NEWNUM) (FUNCT2) //then execute both of these
(list 'not found)))) //else output this
So after the if statment I want to be able to execute (setq num NEWNUM) and (FUNCT2). One to set a new variable and then the other to call a function. Any ideas on how to do this?
© Stack Overflow or respective owner