t3x.org / sketchy / library / if.html
SketchyLISP
Reference
  Copyright (C) 2007
Nils M Holm

if

Conformance: R5RS Scheme

Purpose: Conditional evaluation.

Arguments:
P - predicate
C - consequent
A - alternative

Model:

(define-syntax if
  (syntax-rules ()
    ((_ p c a)
       (cond (p c) (else a)))))

Implementation:

; This syntax transformer is part of the primitive syntax.

Example:

(if #t 'true 'false) 
=> true

See also:
case.