You are creating you map in BizTalk. What if you have an incoming element that you need to handle based on the data content? Like if it’s a null do one thing and if its a value do another.
There is a quick one line piece of C# code that you can put in your functoid to handle:
(conditional statement)? [case, if false]:[case, if true]
For example:
newVar = (varValue == null) ? “” : varValue;
This will return an empty string if the value is null; otherwise the incoming value is used.
In a scripting functoid using “return (varVal == null)? “”: varVal;” works just as well.