def inputcond(iq, cc, wv):
    """
    Handle user input for conditions constraints.
    If not 'any' or 'Any', first 2 digits are converted to a percentage.
    Otherwise, a ValueError is raised.

    Examples
    --------
    'any' --> 'Any'
    '10'  --> '10%'
    '85%' --> '85%'
    '08'  --> '08%'
    '808' --> '80%'
    '8'   --> '8%'
    '8%'  --> ValueError

    Parameters
    ----------
    iq : str
        image quality percentile

    cc : str
        cloud condition percentile

    wv : str
        water vapor percentile

    Returns
    -------
    newiq, newcc, newwv : str, str, str
        Formatted condition constraints strings
    """

    if iq.lower() == 'any':
        iq = 'Any'
    else:
        try:
            float(iq[0:2])
            iq = iq[0:2] + '%'
        except ValueError:
            raise ValueError
    if cc.lower() == 'any':
        cc = 'Any'
    else:
        try:
            float(cc[0:2])
            cc = cc[0:2] + '%'
        except ValueError:
            raise ValueError
    if wv.lower() == 'any':
        wv = 'Any'
    else:
        try:
            float(wv[0:2])
            wv = wv[0:2] + '%'
        except ValueError:
            raise ValueError
    return iq, cc, wv