Question

I've read conflicting things about this so before I start the work, can anyone confirm or otherwise if If statements will work inside BizTalk expression shapes?

Was it helpful?

Solution

Yes they do work, I've used them in a Biztalk 2006r2 expression shape (IF() {} else {} etc.).

You can't control the flow through the orchestration with them though. You will want to use a decide shape for that (which acts like an IF statement).

I tend to use IF statements in expressions to set a variable e.g. :

 if (somecondition)
 {
   somevariable = true;
 }
 else
 {
   somevariable = false;
 }

Hope that helps!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top