optionalAttribute

fun optionalAttribute(key: String, value: Any?): <Error class: unknown class>

Adds an attribute to this tag only if value is not null.

Return

this for concatenation

Parameters

key

attribute key

value

attribute value, applied only if not null