String.Contains not working, solution needed

Hello,

Can someone tell me what I am doing wrong, please? It is supposed to give me true/false based on whether it has a value or not, but I am only receiving ‘false’.

1 Like

Can you provide another example? In that one you’re checking if the string contains "" (which is nothing, hence all strings contains that)

2 Likes

This is the issue. Instead of String.Contains you should check for equality using a == node.

3 Likes

Thank you :slight_smile: that was what I was looking for.