on 5e6a67f help sign in
18 lines 401 B history raw
1# `if`, `?:`, "wutcol" `{$if p/twig q/twig r/twig}`
3If-then-else.
5If `p` evaluates to true, then `q`. Else, `e`.
7Regular form: *3-fixed*
9Examples:
11 ~zod/try=> ?:((gth 1 2) 1 2)
12 2
13 ~zod/try=> ?:(?=(%a 'a') %yup %not-a)
14 %yup
16Here we see two common cases of `?:` in the wide form, one uses an
17expression `++gte` that produces a boolean and the other `?=` to
18produce one of its cases.