Skip to main content

ToBool

Converts the CDocBuilderValue object to a boolean value.

note

This method is not available for JS.

Syntax

def ToBool(self) -> bool

Parameters

This method has no parameters.

Example

builder = docbuilder.CDocBuilder()
context = builder.GetContext()
globalObj = context.GetGlobal()
bGlobal = globalObj.ToBool()