Yes.
if ($did(name,id,0) == 0)
is the same as
if (!$did(name,id,0))

which is what hixxy used