Skip to main content

ToBool

Converts the CDocBuilderValue object to a boolean value.

Please note, that for the .docbuilder file the CDocBuilderValue.ToBool method is not used.

Syntax

def ToBool(self) -> bool

Parameters

NameTypeDescription
resultVARIANT_BOOL*The returned boolean value.

Example

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