bash check return of command not error

if command ; then
    echo "Command succeeded"
else
    echo "Command failed"
fi
steamboatid