the "if" is incomplete. use...
if ($did(1).state == 1) or if ($did(1).state == 0)

Last edited by Naz; 25/11/04 12:17 AM.