isTrue

Test whether the entry value represents true.

@nogc @safe pure nothrow
bool
isTrue
(
const(char)[] value
)

Examples

assert(isTrue("true"));
assert(isTrue("1"));
assert(!isTrue("not boolean"));

See Also

Meta