JanetDocsPlaygroundI'm feeling luckyGitHub sign in

when



    macro
    boot.janet on line 188, column 1

    (when condition & body)

    Evaluates the body when the condition is true. Otherwise returns 
    nil.


1 exampleSign in to add an example
Loading...
(def name "Joe")
(when (= name "Joe") "Hello Joe")
# "Hello Joe"


(when (not= 1 2) "not-equal")
# "not-equal"
leobmPlayground