cToBoolean property
bool
get
cToBoolean
Converts certain string values ('true', 'false', '1', '0') to a boolean.
Implementation
bool get cToBoolean {
if ((this).toLowerCase() == 'true' || (this).toLowerCase() == '1') {
return true;
}
if ((this).toLowerCase() == 'false' || (this).toLowerCase() == '0') {
return false;
}
throw ('cToBoolean value is : $this');
}