+Effects If...: when and unless in The Racket Guide introduces when and unless .
syntax( when test-exprbody...+)
syntax
( when test-exprbody...+)
> (when (positive? -5) (display "hi")) > (when (positive? 5) (display "hi") (display " there")) hi there
hi there
syntax( unless test-exprbody...+)
( unless test-exprbody...+)
> (unless (positive? 5) (display "hi")) > (unless (positive? -5) (display "hi") (display " there")) hi there
AltStyle γ«γγ£γ¦ε€ζγγγγγΌγΈ (->γͺγͺγΈγγ«) / γ’γγ¬γΉ: γ’γΌγ: γγγ©γ«γ ι³ε£°γγ©γ¦γΆ γ«γδ»γ ι θ²εθ»’ ζεζ‘ε€§ γ’γγ€γ«