I'm trying to make a script which uses the selection of the group based on the comment field of the user manager.
The portion of the script code:
$s=instr(@COMMENT,"(")
$e=instr(@COMMENT,")")
$l=($e-$s)-1
if ($l=0)
$g="NONE"
else
if $e>0
$g=substr(@COMMENT,$s+1,$l)
else
$g="NONE"
endif
endif

select
case ingroup("SDAGQ")
if len($g)=5
$dir=$v+$g+$x
else
$dir=$v+"SDAQG-"+$g+$x
endif
goto $g
case 1
goto none
endselect

:sdagq-bit
use u: $dir
use lpt2: "\\hera\ljsdim"
goto news


the script don't work correctly. He says that he can't find the label case 1.

Does anybody know how to make it work ?

------------------