This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Interprets the given string as a boolean. Strings are evaluated as true if they match 'true', 'yes' or '1' (not case-sensitive).

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[(IsDeterministic = true)]
public static <bool> ToBoolean(
	 data
)
Visual Basic (Declaration)Copy imageCopy Code
<(IsDeterministic := True)> _
Public Shared Function ToBoolean ( _
	data As  _
) As (Of )

Parameters

data
Object
The data to convert.

Return Value

Input string converted to a boolean.

See Also

Advanced