Conditionally evaluates expressions
(if testexpr thenexpr [elseexpr])
Arguments
Expression to be tested.
nil.
Expression evaluated if testexpr is notnil.
Expression evaluated if testexpr isReturn Values
if function returns the value of the selected expression. If elseexpr is missing and testexpr is nil, then it returns nil.
TheExamples
Command: (if (= 1 3) "YES!!" "no.")
"no."
Command: (if (= 2 (+ 1 1)) "YES!!")
"YES!!"
Command: (if (= 2 (+ 3 4)) "YES!!")
nil
progn function.
The