i want to exit the script when the script encounter an error ..I am using exit in outside of loop it works fine but when call exit inside of the loop it only exit from the loop not exit from the script
I am also tried by calling exit from the function it does not work inside the loop