mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-30 02:12:22 +03:00
644 B
644 B
wut ? %wut
Conditionals
The ?
runes, with the exception of ?=
, produce conditional
statements. The ?
runes are the workhorse of control-flow.
There are three basic categories.
If-then-else
?:
A natural ?
rune. The traditional if-than-else statement.
?.
Inversion of ?:
. An "unless" statement. Used to keep the code
flowing vertically.
Switches
?-
Tradional switch.
?+
Switch with a default return value.
Type Tests
?=
Tests if the icon of ++tile
p
contains q
.