Branching with if and else in Clojure is straightforward.
Note that in Clojure, you don’t need parentheses around conditions, and the syntax is quite different from imperative languages. Clojure uses prefix notation and has a more functional style.
To run the program:
Clojure doesn’t have a ternary operator, but the if expression can be used for similar purposes, often in a more concise way than in imperative languages.