As is, the code below is invalid, because the brackets can not be used like that. if we remove them, it runs fine, and outputs:
true
true
code:
#!/usr/bin/fish
if ( false ; and true ) ; or true
echo "true"
else
echo "false"
end
if false ; and ( true ; or true )
echo "true"
else
echo "false"
end
How to get the functionality indicated by the brackets?
desired output:
true
false