The documentation for &#39;if&#39; is here <a href="http://docs.racket-lang.org/reference/if.html?q=if">http://docs.racket-lang.org/reference/if.html?q=if</a><br><br>Here&#39;s a slightly modified example from the doc using &#39;if&#39;:<br>
<br><span class="RktPn">(if (positive? -5) <br>  (error &quot;shouldn&#39;t get here&quot;) <br>  </span>(display &quot;hi&quot;)<span class="RktPn">)</span><br><br>You might want to consider the &#39;when&#39;, documented here <a href="http://docs.racket-lang.org/reference/when_unless.html?q=when">http://docs.racket-lang.org/reference/when_unless.html?q=when</a><br>
<br>And here&#39;s an example from the doc using &#39;when&#39;:<br><br>(when (positive? -5)<br>    (display &quot;hi&quot;))<br><br>Cheers,<br><br>Kieron.<br><br>