tutorial: Mention combiners in conditionals section

See #4116.
This commit is contained in:
Fabian Homborg 2017-06-11 13:46:13 +02:00
parent 7bdcbc1775
commit 65b80da60b

View file

@ -450,6 +450,16 @@ else
end
\endfish
<a href="#tut_combiners">Combiners</a> can also be used to make more complex conditions, like
\fish
if grep fish /etc/shells; and command -sq fish
echo fish is installed and configured
end
\endfish
For even more complex conditions, use `begin` and `end` to group parts of them.
There is also a `switch` command:
\fish{cli-dark}