mrdocs::dom::operator||

Return the first dom::Value that is truthy, or the last one.

Synopsis

Declared in <mrdocs/Dom/Value.hpp>

dom::Value
operator||(
    Value const& lhs,
    Value const& rhs);

NOTE

This function is a hidden friend of Value, declared only inside that class: it can be found only through argument-dependent lookup.

Description

This function is equivalent to the JavaScript || operator.

Return Value

the first dom::Value that is truthy, or the last one.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand