There is no built-in COALESCE function in JSL. However, for a single column, the formula is not that complicated:
if( !Is Missing( :X ),
:X, //:X is not missing
"A" //else
);
Admittedly, it does get a bit more lengthy with more columns, but it's still not too bad.
if(
!Is Missing( :X ), :X, //:X is not missing
!Is Missing( :Y ), :Y, //:Y is not missing
!Is Missing( :Z ), :Z, //:Z is not missing
"A" //else
);
Is Missing() will take a list or matrix argument and return a list or matrix of 0s and 1s indicating missing or not in those locations.
Is Missing( {"a", " ", "c"} ); // returns {0, 1, 0}
Perhaps someone more clever than I can use that to make a simpler version.
And, of course, whatever method you choose can be used to create a custom function, Coalesce().
-Jeff