Hi Richard just a quick query. I need to apply this to students only within the script. This script is used by staff as well so I've got this

---------------
If InGroup("All Students")
USE H: /delete /persistent
USE H: @HOMESHR
If @ERROR
$=MessageBox("Cannot map home share, reason: ["+@ERROR+"] "+@SERROR, "Logon error",0+16+4096,30)
$=LogOff(1)
EndIf
--------------
Would this work with two if statments and only one endif or do I need to break this apart with another endif.

Regards
Amdad1