conditional

fun conditional(conditional: String, value: Boolean): TemplateProcessor

Adds a conditional variable that shows or removes fragments of the template code.

Return

this for concatenation

Parameters

conditional

conditional name

value

whether the fragment should be shown (true) or hidden (false)