mrdocs::handlebars::helpers::selectFn

"select" helper function

Synopsis

Declared in <mrdocs/Handlebars/Helpers/Logical.hpp>

dom::Value
selectFn(
    dom::Value const& condition,
    dom::Value const& result_true,
    dom::Value const& result_false);

Description

The "select" helper returns the second argument if the first argument is truthy, and the third argument otherwise.

Return Value

A variant container for any kind of Dom value.

Parameters

NameDescription
conditionA variant container for any kind of Dom value.
result_trueA variant container for any kind of Dom value.
result_falseA variant container for any kind of Dom value.