diff --git a/lt-cljs-tutorial.cljs b/lt-cljs-tutorial.cljs index e4b5bca..28f9884 100644 --- a/lt-cljs-tutorial.cljs +++ b/lt-cljs-tutorial.cljs @@ -549,6 +549,14 @@ a-list ;; The only false-y values in ClojureScript are `nil` and `false`. `undefined` ;; is not really a valid ClojureScript value and is generally coerced to `nil`. +(if nil + "Yuck" + "`nil` is one of the two false-y values in ClojureScript.") + +(if false + "Yuck." + "false is the other false-y value.") + ;; cond ;; ----------------------------------------------------------------------------