Please take a look at the KiXtart Manual, it ewxplains how to use UBOUND(). If UBOUND() returns -1, then the variable is not an array. You can achieve the same by using (VARTYPE($var) & 8192), if that one is '0' then it's not an array.
_________________________
There are two types of vessels, submarines and targets.