if [ $foo ]; then
    if [ $bar ]; then
        foobar
    else
        qux
    fi
fi