Hi,
Yes, as Richard has shown the SDEC modifier is what you're looking for to get rid of the IF/ELSE/ENDIF stuff but I don't quite understand why you need to build the string, put into an Array and then send it with HSEROUT. Do you need it in the Array for some other purposes? If not, then simply
Code:
HSEROUT ["SU ", #COMMAND, " ", SDEC PARAM1]
I'm sure the length of the array, after an arraywrite CAN be extracted from an internal system variable (if done directly after the Arraywrite) but I don't know which. Would need to do some investigation to find out. But again, I don't see the need.

/Henrik.