Loading TOC...

NodeBuilder.addBoolean

NodeBuilder.addBoolean(
   $val as Boolean
) as This NodeBuilder object

Summary

Add a boolean node to the node tree the builder is building.

Parameters
$val The value of the boolean node.

Example

const builder = new NodeBuilder();
builder.addBoolean(true);
builder.toNode();

// Returns a JSON boolean node containing the value true

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy