optionalValue

fun optionalValue(placeholder: String, value: Any?): <Error class: unknown class>

Adds both a value to replace the placeholder (or null if absent), and registers it so that the template can check for null presence.

Return

this for concatenation

Parameters

placeholder

both placeholder to replace and name of the conditional

value

value to replace in change of the placeholder, or null if absent

See also