How can I use If statement on Assign activity in C#?

Hi everyone!

In VB projects I can use If statements in Assign activity: Assign = if(in_CC = “abc”, “AB”,“CD”), but not in C# projects. Maybe I don’t use the correct format, please your help.

@jucgonza
welcome to the forum:

give a try on:

condition ? truepart : falsepart
in_CC == "abc" ? "AB" : "CD"

It works! Thanks a lot!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.