You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Best way to output a node even if null? (foreach, choose does not output node as expected)

Received Response
edited Oct 28, 2020 12:06AM in Integration 5 comments


How can I output a node as null if the foreach/choose condition is not met?  Here's the source:

I am attempting to map to this structure when a condition is met:
.. and this structure when it is not met:
The problem is that the response node is repeating so I must use a foreach loop.  If I use an otherwise condition the alternatenumber node is output for each of the response nodes present, which is not what I want (I only want 1 alternatenumber node)

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!