The End script keyword is used to close If, Sub and Switch clauses.
If..then..elseif..else..end if
Sub..end sub
Switch..case..default..end switch