UserImage.jpg
Sameer Dhulia
Ternary Operator
260
Views
3
Comments
New
Service Studio

We use nested If statement & Switch Statement to justify conditional logic. So rather than calling them which looks bad design in Server action as per flow. we can use C# ternary opertor concept which will give result in single statement.

Changed the category to
Service Studio

Can't you use the if(condition, true, false) built-in function?

UserImage.jpg
Sameer Dhulia

When we have multiple nested conditions we prefer IF ELSE or SWITCH condition which are in-built function of OutSystems. I am talking about ternary operator which will provide us nested condition logic by using single statement.