no.
G: is a string.
this is not perl but kixtart.

thus:
IF NOT fnMapped("\\ADMIN\NOGROUP$") = "G:" GOSUB "CHECKH" ELSE GOTO "MISDIRECT" ENDIF

or even:
IF fnMapped("\\ADMIN\NOGROUP$") <> "G:" GOSUB "CHECKH" ELSE GOTO "MISDIRECT" ENDIF

or even better:
IF fnMapped("\\ADMIN\NOGROUP$") <> "G:"
GOSUB "CHECKH"
ELSE
GOTO "MISDIRECT"
ENDIF

and best would be to get rid of all those goto's
_________________________
!

download KiXnet