Update web.tex

Add endif for each if condition