here is my javascript array alert(Parameter); it alerts:
Eqt_Param0=4.00,Eqt_Param1=0,Eqt_Param2=0
Now what I am trying to do is if any of the array elements values are equal to ‘0` i need to alert ‘array does not contain all values,’, so how to check whether array is empty or not.
It looks like your array is a set of values of the form “key=number”, and you want to know if any of the numbers are equal to zero.
The “proper” way to do it is:
But you could just hax it: