If a text field is zero, display nothing and check the next text field.
I am attempting to write a script that checks the value of a field and displays fixed text + the value. If the value is zero, it should display nothing and check the next field.
If there are multiple fields with a value greater than zero, it should display them with a comma separating them.
The purpose of this document is to allow someone to choose how many awards they have and then display them in a specific format.
For example:
If someone indicates that they have an achievement award and two commendations, it should display as "UTACH-1, UTCOM-2". If they have zero achievement awards but two commendations, it'll display as "UTCOM-2".
The issue I'm running into is that there are 44 total awards so I have to come up with an eloquent solution rather than just do a bunch of "if else" commands.
