in reply to Recursive If statement not working.

It's because your if will only check once - you want a while loop.
while (( lc($autoSubmit) ne "y") and ($autoSubmit ne "n")) { print "You did not enter in Yes or No. Please try again\n"; autoSubmit; }
Updated: Changed language used