In the above calculation, the “Condition” is tested to determine if it evaluates to true or false. If it evaluates to true, the expression will return ValueA. If it evaluates to false, the expression will return ValueB .
If the value of Cabinet.Count is 3, the result in the report will be:
If the value of Cabinet.Count is 0, then the result in the report will be:
In C#, you can use the ternary operator. For example:
If “Condition” is true, the expression will return ValueA. If false, it will return ValueB.