By definition the function exit status is either the value from the last run command or as specified using the return keyword. The value is 0 for success or 1-255 for failure and is assigned to $?.
The returned value via echo command is not limited to 0-255 values.
Do something if myfunc exit status=0
Code:
if myfunc --opt $arg
then
echo "do something"
fi
In the case command 1 && command 2, command 2 will only run if command's 1 exit status=0.
In the case command 1 || command 2, command 2 will only run if command's 1 exit status not 0.