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

if

Conformance: R5RS

Purpose: Conditional evaluation.

Arguments:
P - predicate
TF - consequent
FF - alternative

Model:

(define-syntax if
   (syntax-rules ()
     ((_ p tf ff)
       (cond (p tf) (#t ff)))))

Implementation:

; This pseudo function is a special form handler.

Example:

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