The documentation for 'if' is here
http://docs.racket-lang.org/reference/if.html?q=if

Here's a slightly modified example from the doc using 'if':

(if (positive? -5)
  (error "shouldn't get here")
  (display "hi"))

You might want to consider the 'when', documented here
http://docs.racket-lang.org/reference/when_unless.html?q=when

And here's an example from the doc using 'when':

(when (positive? -5)
    (display "hi"))

Cheers,

Kieron.
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to