Share this page

# lrc_bool

Type Conversion From String

Converts a string into a Boolean variant.

    VARIANT_BOOL lrc_bool( const char* str );

    VARIANT_BOOL* lrc_bool_by_ref( const char* str );

str | A character string containing "true" or "false".

The lrc_bool function returns a Boolean value when a character string containing "true" or "false" is input.

The lrc_bool_by_ref function returns a pointer to a Boolean value when a character string containing "true" or "false" is input.

## Return Values

lrc Return Values

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

This example converts the string "true" into a Boolean variant.

    VARIANT_BOOL var = lrc_bool("true");

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: