boolstr( true_string, false_string )

Description:

Convert a boolean value to a string.

Input:

A true or false boolean value, or a non-boolean that can be loosely interpreted as true or false.

Parameters:

true_string

What to return if the input value is true. Defaults to 'yes'.

false_string

What to return if the input value is false. Defaults to 'no'.

Return:

The converted value.