Rank: Newbie
Joined: 3/29/2020 Posts: 2 Location: Belgium
|
How can I check it a node exists and is not empty?
I tried the exists function and it works, but it does not work for nodes which occur more than once.
Imagine there are 2 details, the first detail has the node BatchNumber and the second detail has not. If I use the exists function, it will always return true. How can I check that the BatchNumber in the second details exists?
In this case BatchNumber is a string, but in the case of ExpiryDate, we are talking about a date, so stirng functions are out of the question.
Thank you in advance. christophe.k attached the following image(s):
|
Rank: Newbie
Joined: 3/29/2020 Posts: 2 Location: Belgium
|
Never mind, found the solution. Apparently my mapping was wrong
Instead of adding the exists value on the parent node, I added an if-else to add the specific value christophe.k attached the following image(s):
|