11.11.15 AsBoolean Method

Gets the value of the element as a boolean. If the element's value is not a boolean, an implicit conversion to boolean will be performed.

Return Value

Type

Description

Boolean

The boolean value of the element.

If the element can't be converted into a boolean, 0 will be returned.