I'm not sure I understood what you just said.If it's a string, you have to use $= ""if you just use == 0 it will always be true because trying to convert a string to a number will always be 0
if(%theString $! ""){<code>}
!$=
As good a reference as any.Specifically the first part, thought the whole thing is useful.