Dear,

Incorrect syntax between IF/ENDIF structure doesn't mean your script
will never run in a correct way.

We suggest something like
code:
IF (Ingroup("example") <> 0)
USE J: /delete /persistent
USE J: "$s\example"
IF (@error <> 0)
? "Error KIX-USE: problems during mapping. code @error (@serror)"
ENDIF
ENDIF

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA