Hi Jimmy

VRW will handle the return values from a DB call acordingly of the field type, a string type will be handled like a string.

So when a field with a string type returns (Null) it will be converted to a string containing "(Null)".

In your case you have to use
return ({WSHPVALG.TYPEVALGTEXT} = "(Null)")