JanetDocsPlaygroundI'm feeling luckyGitHub sign in

unless



    macro
    boot.janet on line 182, column 1

    (unless condition & body)

    Shorthand for (when (not condition) ;body).


1 exampleSign in to add an example
Loading...
(var x 10)

(unless (= x 10)
   (print "x is not 10!")
   (print "x is 10!"))

# => "x is 10!"
HoangTuan110Playground