cancel
Showing results for 
Search instead for 
Did you mean: 

IF statement in XML Generator

alex_panganiban
Contributor

I’ve seen in some examples on how to incorporate a foreach loop in the XML generator, but I’d to do a simple IF statement. Anyone have an example of the edited XML in their XML Generator snap that contains an IF clause? Is it even possible?

2 REPLIES 2

jhagist
New Contributor III

As you know there isn’t an if statement available. Not sure about your use case but one thing my team has done is to use a router that then runs an execute pipeline snap. In general we have found that many small pipelines give more flexibility than one large one

SpiroTaleski
Valued Contributor

Hi @alex.panganiban.guild, you can use Apache Velocity Templates in XML Generator. For more information check the link below :