C# equivalent of the SQL CASE statement?

Nope, you can’t make methods in BPM. But you can make actions (no return) or functions (returns something). You have to put them at the top of your code because they must be created before you call them, but once they are made, you can call them like any other method.

Add as many inputs as you need.

Action<string, string> WT = (myVar, myVar2) =>
    {
        //do stuff here, myVar, myVar2  are your parameters passed in
        
    };

Add as many inputs as you need, then the last one is your output.

Func<string, string> GetFunction = (inString) =>
{   
   
   //do stuff here using inString
  return myResult;
};

I’m not sure if my syntax is exactly right, but should be close enough for you to get the gist.

2 Likes