Add multi-condition example to if documentation

This commit is contained in:
Fabian Homborg 2015-08-12 14:24:40 +02:00
parent bbbadbcb78
commit 3810ef47f7

View file

@ -30,3 +30,12 @@ else
echo foo.txt and bar.txt do not exist
end
\endfish
The following code will print "foo.txt exists and is readable" if foo.txt is a regular file and readable
\fish
if begin test -f foo.txt
and test -r foo.txt
end
echo "foo.txt exists and is readable"
end
\endfish