def if_elif_else(value, condition_function_pair):
    """
    Apply logic if condition is True.

    Parameters
    ----------
    value : anything
        The initial value

    condition_function_pair : tuple
        First element is the assertion function, second element is the
        logic function to execute if assertion is true.

    Returns
    -------
    The result of the first function for which assertion is true.
    """
    for condition, func in condition_function_pair:
        if condition(value):
            return func(value)