Hey there! First post looking for some assistance. Here's my situation.
I have a form where users answer a series of questions through combo and check boxes that grade their experience. When they have made all of their selections and submit, I need to provide a result based on their answers.
The result varies based on the answers that are provided but only for specific questions ie some answers provide a positive or negative result.
I have a function that checks that answers for the specific questions and references a table with all of the possible answers, assigns a numerical value and then displays a result based on the lowest possible number.
Here's my issue, there are certain instances where the question does not have to be answered and is left blank therefore resulting in a null value. When my function runs, the blank answers result in a -1 which makes it the lowest value and giving the wrong result.
How do I account for null values returning a -1?
Any help would be greatly appreciated!
I have a form where users answer a series of questions through combo and check boxes that grade their experience. When they have made all of their selections and submit, I need to provide a result based on their answers.
The result varies based on the answers that are provided but only for specific questions ie some answers provide a positive or negative result.
I have a function that checks that answers for the specific questions and references a table with all of the possible answers, assigns a numerical value and then displays a result based on the lowest possible number.
Here's my issue, there are certain instances where the question does not have to be answered and is left blank therefore resulting in a null value. When my function runs, the blank answers result in a -1 which makes it the lowest value and giving the wrong result.
How do I account for null values returning a -1?
Any help would be greatly appreciated!