def condition_str(condition, phase, component):
    """
    Returns a string representation of a condition for a specific phase and component.
    """
    if phase!=None:
        return condition + '(' + phase + ',' + component + ')'
    else:
        return condition + '(' + component + ')'