This is the way:
linkedItemType == LinkedItemType.Prospect ? "pendo-prospects" : linkedItemType == LinkedItemType.Loan ? "pendo-loan" : "pendo-task";
Or, the same thing broken onto different lines for readability:
linkedItemType == LinkedItemType.Prospect ? "pendo-prospects"
: linkedItemType == LinkedItemType.Loan ? "pendo-loan"
: "pendo-task";
0
solved How to chain Ternary Operators? [closed]