
I have more than 2 strings one is email and one is group, if both are valid then I should execute push to server(). I am comparing the string to find whether it is email or string, that is done before the for()loop.
In this logic I want to run the sendto push server code only when both the conditions are succesful, The input will be both email and group. If email is correct and if group is correct only then the send to push server should be executed. If any one is wrong it should not be executed. I can run the send to push server only I cant do it once for email and once for group thats why I have it after executing both email and group. If there is any error in any one group or email then I should not execute the send to push server I have to skip it. how can I do that
1 Answer