TOPIC: Filter on empty and zero (0)

I have a multiple numerical input question that I would like to use throughout my survey as a filter. Currently when I set the array filter in subsequent questions it only filters the array rows if a multiple numerical input text field is empty. I need it to filter if empty or if zero (0).
If I set the question to not mandatory and just filter if empty users may still choose to enter zero (0) and in that situation I would still like the rows to be hidden in subsequent filtered questions.
I have javascript that will work similar to the filter but if I can get the filters to work that would be preferable.

Thank you in advance.

The administrator has disabled public write access.

JavaScript is currently disabled.Please enable it for a better experience of Jumi.

As you have probably seen, when you use array filter, the auto-generated relevance for each sub-question is something like this:

!is_empty(q1_sq3.NAOK)

You want the auto-generated code to be:

(!is_empty(q1_sq3.NAOK) and q1_sq3.NAOK !=0)

There are two ways to do that, both of which would require enhancements:
(1) Provide a new advanced question attribute called, perhaps, array_filter_alternate_missing_values, which could be a semi-colon delimited set of values that would be treated by the array_filter as a missing value. The reason for not just using 0 is that authors might want to give users the option to enter values like 888 or 999 to indicate that the choices are not applicable, or that they refuse to answer.
(2) Implement a GUI for sub-question relevance. That way each sub-question could have an additional relevance clause added to it which would be anded to anything auto-generated by the array-filter routines. This approach is more complicated, but would support a common request for that functionality.

Thanks Mr. White, I've decided to go with my original Javascript code to hide the array rows since it worked so well in the past. However I now have a new problem with INSERTANS and 1.92. Below is my code, can you help me understand how to collect and apply values from previous questions?

Thanks to both of you for all your help. After a great deal of trial and error the problem all along was my error trapping ( if( isNaN( EH ) ) EH = 0; )and not INSERTANS. Once I made tpartner's suggested changes ( if(isNaN(EH)) { EH = 0;}) everything worked perfectly. Thanks also to tpartner for the suggested shortcuts. I tend to take the long way.