Without seeing the script, it's hard to help. There are a couple of reasons why this happens, e.g. variable scope issues. Also, please do not use variables embedded inside strings. You could also try
code:
? 'vartype(printer)     = '+vartype($printer)
? 'vartypename(printer) = '+vartypename($printer)
? 'printer = '+$printer
? 'The $printer is installed'

_________________________
There are two types of vessels, submarines and targets.