if wthout Else

if (cgdc_re_match ("^(865|866|867|868|869)$", number1) == CGDC_RE_OK)
return TRUE;
else if (cgdc_re_match ("^(765|766|767|768|769)$", number2) == CGDC_RE_OK)
return TRUE;

return FALSE;


Will is work correctly without else ,but 'return FALSE'
do not quite understand the question. Both statements should run correctly, if both are false then it would skip onto the return false statement. Also, im not sure if you made constants true and false, but those are case sensitive words.
Thank you very much
Topic archived. No new replies allowed.