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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.