Hi @Samiksha,
Your statement logically looks right. I think the problem is in the result. You are returning 1 or 0 for valid cases (numeric) and “No Action Required” in the end which is string and hence may be getting an error.
Try putting the 1 and 0 in quotes and things should work fine.