How do you check if variable is a list? Assuming that the variable is a local variable
Discussion posts and replies are publicly visible
I use the following:
like(typename(runtimetypeof(local!value)), "List of*")
This is dangerous as this string is localized to the users language.
That's what I thought as well but it doesn't seem to be the case. Nevertheless, I think your method is better.