I am a horse in the land of booleans
CRANK

Any program is only as good as it is useful. Linus TorvaldsFork this are the instructions if you need them. Be sure to fork the repository behind the link above.If then elseAny non-trivial program needs conditionals. Clojure’s if looks like the following:(if (my-father? darth-vader) ; Conditional (lose-hand me) ; If true (gain-hat me)) ; If falseif (usually) takes three parameters: the conditional clause, the then body and the else body. If the first parameter - the conditional clause - is true, the then body is evaluated. Otherwise, the else body is evaluated.Clojure has two boolean values: true and false. However, all values can be used in a boolean context like if. Everything except nil and false acts as true. For example, all of the following are valid Clojure:(if "foo" "truthy" "falsey") ;=> "truthy" (if 0 "truthy" "falsey") ;=> "truthy" (if [] "truthy" "falsey") ;=> "truthy" (if false "truthy" "falsey") ;=> "falsey" (if nil "truthy" "fals…

iloveponies.github.io
Related Topics: Clojure Java