ifConditional: evaluate test, then branch.
Parameters:
ANY — Condition expressionANY — True branchANY — False branch (optional)Examples:
(if (> 3 2) "yes" "no") => "yes"letBind local variables and evaluate body.
Named let: (let name ((var init) …) body) creates a loop.
Parameters:
LIST — ((name value) …) binding pairsANY — Body expressionExamples:
(let ((x 1) (y 2)) (+ x y)) => 3
(let loop ((n 5) (acc 1)) (if (= n 0) acc (loop (- n 1) (* acc n)))) => 120See also: letrec