(if condition then else) condition: any form then: any form else: any form
Performs conditional evaluation.
condition form is evaluated. If it evaluates to
form is evaluated; otherwise, the
then form is evaluated.
if is sometimes useful when you want to express a very short conditional which fits on
a single line:
(= color (if (< hp 10) 'red 'green))