Quote:

Where did you get '#' from? Anyway my, bad, try this:

Code:

for each $printer in split($printers, ",")
$curPrinter = "$" + $printer
$ = execute('$$curPrinter = $curPrinter')
? $curPrinter
if instr($curPrinter, @userid)
? "user gets this printer"
endif
next







sorry, I meant $printers.
split statement dosn't work in this code. But that's not critical. Which is more important that I get absolutely the same output.