optionalValue

fun optionalValue(placeholder: String, value: Any?): TemplateProcessor

Adds both a conditional to check if value is not null, and a value to replace the placeholder with the non-null value.

Return

this for concatenation

Parameters

placeholder

both placeholder to replace and name of the conditional

value

value to replace in change of the placeholder

See also