before that executes, it checks to see if the string is an array

iif(VarType($sValue) & 8192,join($sValue,'|',ubound($sValue)),$sValue)
_________________________
How to ask questions the smart way <-----------> Before you ask