Created
January 23, 2014 18:41
-
-
Save WilCF/8584353 to your computer and use it in GitHub Desktop.
I have a csv file that contains one master value and 1-8 possible matches. What i would like to do is only show the number of matches that exist. So, for example, if there are only 4, just show the 4 options. Is there a way to do this in CML? Currently I just show all 8 which leads to some rows displaying 'No data available' which doesn't look g…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if column_1 != 'No data available' %} | |
{{master_column}} | |
{% elsif column_2 != 'No data available' %} | |
{{master_column}} {{column_1}} | |
{% elsif column_3 != 'No data available' %} | |
{{master_column}} {{column_1}} {{column_2}} | |
{% elsif column_4 != 'No data available' %} | |
{{master_column}} {{column_1}} {{column_2}} {{column_3}} | |
{% elsif column_5 != 'No data available' %} | |
{{master_column}} {{column_1}} {{column_2}} {{column_3}} {{column_4}} | |
{% elsif column_6 != 'No data available' %} | |
{{master_column}} {{column_1}} {{column_2}} {{column_3}} {{column_4}} {{column_5}} | |
{% elsif column_7 != 'No data available' %} | |
{{master_column}} {{column_1}} {{column_2}} {{column_3}} {{column_4}} {{column_5}} {{column_6}} | |
{% elsif column_8 != 'No data available' %} | |
{{master_column}} {{column_1}} {{column_2}} {{column_3}} {{column_4}} {{column_5}} {{column_6}} {{column_7}} | |
{% else %} | |
{{master_column}} {{column_1}} {{column_2}} {{column_3}} {{column_4}} {{column_5}} {{column_6}} {{column_7}} {{column_8}} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment