The if(variable) clause in the following constructs checks if list/array is not null/undefined, to avoid an exception:
I have three variables and trying to get the result using only binary operators. But somehow it does not work.