a // test
? // nested test in consequence
    b
    ? // nested consequence in consequence
        c
    : // nested alternate in consequence
        d
: // nested test in alternate
    e
    ? // nested consequence in alternate
        f
    : // nested alternate in alternate
        g;