def ternary_operator(iflogic, assertion, elselogic):
    """
    Apply ternary operator logic executing functions.

    Functions should be preconfigured and accept no arguments.

    Better if you see the code:

    `return iflogic() if assertion() else elselogic()`
    """
    return iflogic() if assertion() else elselogic()