src/main/java/j2html/tags/Tag.java
public T condAttr(boolean condition, String attribute, String value) {
        return (condition ? attr(attribute, value) : (T) this);
    }
public T condAttr(boolean condition, String attribute, String value) {
        return (condition ? attr(attribute, value) : (T) this);
    }
public T condAttr ( boolean condition , String attribute , String value ) { return ( condition ? attr ( attribute , value ) : ( T ) this ) ; }
Call attr-method based on condition
{@link #attr(String attribute, Object value)}

@param condition the condition
@param attribute the attribute name
@param value     the attribute value
@return itself for easy chaining
Call attr - method based on condition { @link #attr ( String attribute Object value ) }