def if_cond(condition, if_return, else_return):
    """
    Evaluate a condition to select a return value

    @param condition Statement that evaluates to a boolean
    @param if_return Value that is returned if condition is true
    @param else_return Value that is returned if condition is false

    @return if_return or else_return, depending on condition
    """
    if condition:
        return if_return
    else:
        return else_return