conditional
Adds a conditional variable that shows or removes fragments of the template code. The fragment in the template must be fenced by [[if:NAME]]
and [[endif:NAME]]
. An inverted (not) placeholder is also injected and can be accessed via [[if:!NAME]]
.
Return
this for concatenation
Parameters
conditional
conditional name
value
whether the fragment should be shown (true
) or hidden (false
)