code: public T condAttr(boolean condition, String attribute, String value) {
          return (condition ? attr(attribute, value) : (T) this);
      }
docs: 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