0
0
llucycodes42
esac
The code looks for a match in the string ${var} against the pattern Just a. If there is a match, the code executes the body. Otherwise, the code prints the remaining text.
Shortcut: case
case ${var} of
${alt:Just a} -> ${body}
${otehrwise:_} -> ${remaining}