>>Beware, do not use TYPE(). It was added for speed but makes little difference and is known for returning the wrong result at times. I have seen this myself.
>
>
>I know, it may return C or something else when the value is null
>
>As in
>
>x='qq'
>x=null
>?type('x') && C
>
which is a-ok, as only vartype() is documented to return X for .null.