var.isNull

bool isNull() @property const nothrow @nogc pure @safe

Check if this value is null (Type.NULL).

More readable alternative to v.type == var.Type.NULL.

Returns

true if the value is null, false otherwise.

Examples

var n;
assert(n.isNull);
var i = 42;
assert(!i.isNull);