For reference, when checking numbers, if vBulletin doesn't find a number, it will return 0 instead. (when using TYPE_INT or TYPE_UINT)
The types and what it will return if it can't find what you are asking for is below:
Code:
TYPE_INT and TYPE_UINT: 0
TYPE_NUM and TYPE_UNUM: 0 (if you give it a value of "3 thousand", it will return 3)
TYPE_STR, TYPE_NOTRIM and TYPE_NOHTML: The data represented as a string
TYPE_BOOL: If it finds '1', 'true', 'y', 'yes', it will return 1 - anything else, it will return 0
TYPE_ARRAY: An empty array
TYPE_FILE: An empty files array with the size property set to '4' (indicates that it isn't a file)
TYPE_UNIXTIME: 0
Thanks,
Alan.