Node:Conditionals, Next:Assignments, Previous:Procedures, Up:Primitive expression types
if <test> <consequent> <alternate> | syntax |
if <test> <consequent> | syntax |
Syntax: <Test>, <consequent>, and <alternate> may be arbitrary expressions. Semantics:
An (if (> 3 2) 'yes 'no) ==> yes (if (> 2 3) 'yes 'no) ==> no (if (> 3 2) (- 3 2) (+ 3 2)) ==> 1 |