MindFusion.Reporting for Silverlight Programmer's Guide
CBool

Converts the value, specified as an argument, to a value of boolean type.

Syntax

 Copy Code

bool CBool (
    object value
)

Parameters

value
An expression that can be evaluated to a boolean.

Return Value

true, if the specified value can be evaluated as a boolean and evaluates to true; otherwise, false.

Remarks

If value is a boolean, value is returned. If value is a number, true is returned if the number is non-zero, otherwise - false. If value is a string, true is returned if the string is "true" and false if the string is "false", no case-sensitive.

See Also

Conversion Functions
CDate Function
CDbl Function
CInt Function
CLong Function
CSng Function
CStr Function