Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have an input excel file with a Matrix like the one below.
I need to read this file and if there is an "X" in the space, write out the concatenated Folder+Form in an output variable.
At first I tried "X".equals(input.Folder1)?input.Folder1+input.Form:"X".equals(input.Folder2)?input.Folder2+input.Form:"X".equals(input.Folder3)?input.Folder3+input.Form:null
This gave me the first X in each row. I need to be able to write multiple lines if there are more than one X in a row. I have to loop it somehow, any ideas how to approach?
Form Folder1 Folder2 Folder3
Form1 X
Form2 X X X
Form3 X X
(row1.One!=null ? row1.One +"|" : "") + (row1.Two!=null ? row1.Two +"|" : "") + (row1.Three!=null ? row1.Three +"|" : "") + (row1.Four!=null ? row1.Four +"|" : "")