I'm not a VB user but one possibility is that "no nodes" is actually an empty list structure of some sort. If you are comparing this against, say and integer value of 0, you would get a 'Type Mismatch' error.
Dig Deeper on Development implications of microservices architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.