function StrToBoolDef(const Value: String;
DefaultValue: Boolean=False): Boolean
The StrToBoolDef function returns True if the input parameter is 'True' (case-insensitive), and False if the input parameter is 'False' (case-insensitive also). If the input parameter is not a valid boolean string, the return value is the specified default value.