Clarity theorytheory 0/50 · 0%
Control Flow · easy

19. Conditional: if

Branching logic.

The `if` expression takes a condition and two branches (the 'then' and 'else' branches). Only one branch is executed.

clarity
(if (> u10 u5)
  "larger"
  "smaller")

Check your understanding

  1. 1. Does Clarity have an 'else-if'?