toBool

Translates value to bool

@safe pure
bool
toBool
(
T
)

Examples

t {
	assert(!toBool("YES", "NO"), "Error in toBool(T, T)");
	assert(toBool("YES", "YES") == true, "Error in toBool(bool, T, T)"

Meta