Do you mean that when isTV is set to `1`, you don’t get the ’test’ value back when the TV is empty? If so, that sounds like a bug.
Yes that is what I mean. Can anybody reproduce this? If yes I will give a bug report, otherwise we will look if we did anything wrong...
I looked at the code and it’s not exactly a bug, though you aren’t doing anything wrong.
The snippet will only return the value of the &default property if the TV doesn’t exist, or isn’t attached to the template. IOW, if getting the TV object fails, which it won’t in your case.
It can’t really test for the TV being "empty" because some TVs might be set to 0, which would evaluate to empty.
I think your best bet is to either write your own snippet to get the TV value (which would be faster anyway), or use the isempty output modifier in the tag.