Ends an if statement the same way esac ends case, in bash. It's short and to the point, and more fun than "end if".

fi originated in Algol 68, the successor to Algol 60.