Question: Below is the table from which I need to create conditionalize view.

[![enter image description here](https://i.stack.imgur.com/Nzmgj.png)](https://i.stack.imgur.com/Nzmgj.png)

and I am getting one flag from different table. So based on the flag values i.e. if flag=1 then I need to display actual column values from table, and if flag=0 then show all column values as null values.
I know we can handle it using CASE statement but here, in may case column count is very big so need to handle it in better way.

Answer: 
There's always the comma operator, although it doesn't make the code any more readable

```
return void_function(), 0;

```
Create a lambda that calls void\_function() and returns 0, then from the my\_function() you can return that invoked lambda.