Use these structures to build reusable scripts with decisions, loops, and user-defined command returns.
if <condition> then
<statements>
[elif <condition> then
<statements>]...
[else
<statements>]
fi
while <condition> do
<statements>
done
for <var> in <val1> <val2> ... do
<statements>
done
Use break to exit loops and continue to skip to the next iteration.
Use return <expression> to exit a user-defined command with a status.