A value from a choice
In the terminalela --spec a-value-from-a-choice
Bash's case … esac and if …; then x=a; else x=b; fi set a variable in every arm; ela gives
the value once:
label = switch $kind case "dir"; "folder" case "link"; "shortcut" else; "other"end switchnoun = if $n == 1; "file" else "files"state = if git diff --quiet; "clean" else "changed"
One expression a case or branch; else required, unless a switch names every member of an
enum. A value if is one line. (ela --spec switch-value)