Please run:

? vartypename(ingroup("\\" + @Wksta + "\Administrators"))

it should state Boolean

if this works:
code:
if ingroup("\\" + @Wksta + "\Administrators")<>0
do some stuff
endif

so should
code:
if ingroup("\\" + @Wksta + "\Administrators")
do some stuff
endif

Does this still fail?
code:
if ingroup("\\" + @Wksta + "\Administrators") = 1
do some stuff
endif



[ 21. February 2003, 18:12: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/