Function isTrue

Test whether the entry value represents true.

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

See Also

isFalse, isBoolean

Example

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