convert::to-boolean

Obsolete. Use type-specific conversion functions instead.
Converts the argument to a boolean
bool convert::to-boolean(value)

Parameters

Name Type Description
value bool The string value to be converted to boolean. Must be 'true' or 'false'.

Return Value

value converted to boolean. The function fails with an exception when the conversion is not possible.

Requirements

Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions