Is there a way to end a while loop by using an if? Here's just some pseudocode of the basics of what I want to do:
re = 1
while [re = 1]
do
echo "hello, enter name"
read name
echo name
echo "continue? 1 for yes, 0 for no"
read re
if [re == 1]
then
pass
elif [re == 0]
then
end while
else
pass