elif הוא קיצור של else if. מבנה הבקרה יהיה כדלהלן:
if condition1
then commands1
elif condition2
then commands2
elif condition3
then commands3
elif condition4
then commands4
....
else commands
fi
המעטפת בודקת את התנאי הראשון, אם הצליח מבצעת את הפקודות המתאימות לו ויוצאת ממבנה הבקרה, אחרת ממשיכה הלאה לתנאי השני ובודקת אותו. וכך הלאה.