Hi. I have a doubt in nested if's
here, if the first condition is true, then it will be return the statement "should be 18 digits". If it's false, I want null value to be returned. Since I am using nested if's its returning "must be numerical and no more than 12no's". how can we resolve this. Can someone help me here?
Discussion posts and replies are publicly visible
It would help if you can describe what you are trying to accomplish (e.g., when should "..no more than 12 numbers" show?), and expand your and() statements.
Currently, your empty array (not null technically) would be returned in the situation where the first if() evaluates false and the second if() evaluates to true.